MediaWiki REL1_31
|
Public Member Functions | |
testConstructCacheObj () | |
EtcdConfig::__construct. | |
testConstructCacheSpec () | |
EtcdConfig::__construct. | |
testFetchFromServer (array $httpResponse, array $expected) | |
EtcdConfig::fetchAllFromEtcdServer EtcdConfig::unserialize EtcdConfig::parseResponse EtcdConfig::parseDirectory EtcdConfigParseError provideFetchFromServer. | |
testGetKnown () | |
EtcdConfig::__construct EtcdConfig::get. | |
testGetModifiedIndex () | |
EtcdConfig::getModifiedIndex. | |
testGetUnknown () | |
EtcdConfig::get. | |
testHasKnown () | |
EtcdConfig::has. | |
testHasUnknown () | |
EtcdConfig::has. | |
testLoadCacheExpiredLockFetchFails () | |
EtcdConfig::load. | |
testLoadCacheExpiredLockFetchSucceeded () | |
EtcdConfig::load. | |
testLoadCacheExpiredNoLock () | |
EtcdConfig::load. | |
testLoadCacheHit () | |
EtcdConfig::load. | |
testLoadCacheMiss () | |
Test matrix. | |
testLoadCacheMissBackendError () | |
EtcdConfig::load. | |
testLoadCacheMissWithoutLock () | |
EtcdConfig::load. | |
testLoadProcessCacheHit () | |
EtcdConfig::load. | |
Static Public Member Functions | |
static | provideFetchFromServer () |
Private Member Functions | |
createConfigMock (array $options=[]) | |
createSimpleConfigMock (array $config, $index=0) | |
Static Private Member Functions | |
static | createEtcdResponse (array $response) |
Definition at line 5 of file EtcdConfigTest.php.
|
private |
Definition at line 10 of file EtcdConfigTest.php.
References $options.
Referenced by createSimpleConfigMock(), testConstructCacheObj(), testConstructCacheSpec(), testLoadCacheExpiredLockFetchFails(), testLoadCacheExpiredLockFetchSucceeded(), testLoadCacheExpiredNoLock(), testLoadCacheHit(), testLoadCacheMiss(), testLoadCacheMissBackendError(), testLoadCacheMissWithoutLock(), and testLoadProcessCacheHit().
|
staticprivate |
Definition at line 21 of file EtcdConfigTest.php.
References $response.
Referenced by provideFetchFromServer().
|
private |
Definition at line 31 of file EtcdConfigTest.php.
References createConfigMock().
Referenced by testGetKnown(), testGetModifiedIndex(), testGetUnknown(), testHasKnown(), and testHasUnknown().
|
static |
Definition at line 393 of file EtcdConfigTest.php.
References createEtcdResponse().
EtcdConfigTest::testConstructCacheObj | ( | ) |
Definition at line 97 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testConstructCacheSpec | ( | ) |
Definition at line 115 of file EtcdConfigTest.php.
References createConfigMock().
EtcdConfigTest::testFetchFromServer | ( | array | $httpResponse, |
array | $expected ) |
EtcdConfig::fetchAllFromEtcdServer EtcdConfig::unserialize EtcdConfig::parseResponse EtcdConfig::parseDirectory EtcdConfigParseError provideFetchFromServer.
Definition at line 602 of file EtcdConfigTest.php.
EtcdConfigTest::testGetKnown | ( | ) |
EtcdConfig::__construct EtcdConfig::get.
Definition at line 55 of file EtcdConfigTest.php.
References createSimpleConfigMock().
EtcdConfigTest::testGetModifiedIndex | ( | ) |
Definition at line 86 of file EtcdConfigTest.php.
References createSimpleConfigMock().
EtcdConfigTest::testGetUnknown | ( | ) |
Definition at line 75 of file EtcdConfigTest.php.
References createSimpleConfigMock().
EtcdConfigTest::testHasKnown | ( | ) |
Definition at line 44 of file EtcdConfigTest.php.
References createSimpleConfigMock().
EtcdConfigTest::testHasUnknown | ( | ) |
Definition at line 65 of file EtcdConfigTest.php.
References createSimpleConfigMock().
EtcdConfigTest::testLoadCacheExpiredLockFetchFails | ( | ) |
Definition at line 338 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheExpiredLockFetchSucceeded | ( | ) |
Definition at line 308 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheExpiredNoLock | ( | ) |
Definition at line 368 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheHit | ( | ) |
Definition at line 255 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheMiss | ( | ) |
Test matrix.
Other notable scenarios:
Definition at line 171 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheMissBackendError | ( | ) |
Definition at line 197 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadCacheMissWithoutLock | ( | ) |
Definition at line 223 of file EtcdConfigTest.php.
References $cache, and createConfigMock().
EtcdConfigTest::testLoadProcessCacheHit | ( | ) |
Definition at line 281 of file EtcdConfigTest.php.
References $cache, and createConfigMock().