X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2Fobjectcache%2FCachedBagOStuffTest.php;h=a01cc6b7b8f0b4953c98cf363b23a307d521bd59;hb=a5be382adfdad4678eec18413c6a118cb3284daf;hp=7fe8055444c2da3e24b941f472fd1cf326dc68e4;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php b/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php index 7fe8055444..a01cc6b7b8 100644 --- a/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php +++ b/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php @@ -5,6 +5,10 @@ */ class CachedBagOStuffTest extends PHPUnit_Framework_TestCase { + /** + * @covers CachedBagOStuff::__construct + * @covers CachedBagOStuff::doGet + */ public function testGetFromBackend() { $backend = new HashBagOStuff; $cache = new CachedBagOStuff( $backend ); @@ -16,6 +20,10 @@ class CachedBagOStuffTest extends PHPUnit_Framework_TestCase { $this->assertEquals( 'bar', $cache->get( 'foo' ), 'cached' ); } + /** + * @covers CachedBagOStuff::set + * @covers CachedBagOStuff::delete + */ public function testSetAndDelete() { $backend = new HashBagOStuff; $cache = new CachedBagOStuff( $backend ); @@ -30,6 +38,10 @@ class CachedBagOStuffTest extends PHPUnit_Framework_TestCase { } } + /** + * @covers CachedBagOStuff::set + * @covers CachedBagOStuff::delete + */ public function testWriteCacheOnly() { $backend = new HashBagOStuff; $cache = new CachedBagOStuff( $backend ); @@ -50,6 +62,9 @@ class CachedBagOStuffTest extends PHPUnit_Framework_TestCase { $this->assertEquals( 'old', $cache->get( 'foo' ) ); // Reloaded from backend } + /** + * @covers CachedBagOStuff::doGet + */ public function testCacheBackendMisses() { $backend = new HashBagOStuff; $cache = new CachedBagOStuff( $backend );