}
/**
- * @dataProvider provider_testSetAndGet
+ * @dataProvider provideSetAndGet
* @covers WANObjectCache::set()
* @covers WANObjectCache::get()
* @param mixed $value
}
}
- public static function provider_testSetAndGet() {
+ public static function provideSetAndGet() {
return array(
array( 14141, 3 ),
array( 3535.666, 3 ),
);
}
+ /**
+ * @covers WANObjectCache::get()
+ */
public function testGetNotExists() {
$key = wfRandomString();
$curTTL = null;
$this->assertNull( $curTTL, "Non-existing key has null current TTL" );
}
+ /**
+ * @covers WANObjectCache::set()
+ */
public function testSetOver() {
$key = wfRandomString();
for ( $i = 0; $i < 3; ++$i ) {
}
}
+ /**
+ * @covers WANObjectCache::set()
+ */
public function testStaleSet() {
$key = wfRandomString();
$value = wfRandomString();
/**
* @covers WANObjectCache::getWithSetCallback()
+ * @covers WANObjectCache::doGetWithSetCallback()
*/
public function testGetWithSetCallback() {
$cache = $this->cache;
/**
* @covers WANObjectCache::getWithSetCallback()
+ * @covers WANObjectCache::doGetWithSetCallback()
*/
public function testLockTSE() {
$cache = $this->cache;
/**
* @covers WANObjectCache::getWithSetCallback()
+ * @covers WANObjectCache::doGetWithSetCallback()
*/
public function testLockTSESlow() {
$cache = $this->cache;
$this->assertEquals( $t5, $t6, 'Check key time did not change' );
}
+ /**
+ * @covers WANObjectCache::set()
+ */
public function testSetWithLag() {
$value = 1;
$this->assertEquals( false, $this->cache->get( $key ), "Lagged value not written." );
}
+ /**
+ * @covers WANObjectCache::set()
+ */
public function testWritePending() {
$value = 1;