You are here

public function ChainCacheTest::testDeleteToAllProviders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php \Doctrine\Tests\Common\Cache\ChainCacheTest::testDeleteToAllProviders()

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php, line 66

Class

ChainCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testDeleteToAllProviders() {
  $cache1 = $this
    ->getMockForAbstractClass('Doctrine\\Common\\Cache\\CacheProvider');
  $cache2 = $this
    ->getMockForAbstractClass('Doctrine\\Common\\Cache\\CacheProvider');
  $cache1
    ->expects($this
    ->once())
    ->method('doDelete');
  $cache2
    ->expects($this
    ->once())
    ->method('doDelete');
  $chainCache = new ChainCache(array(
    $cache1,
    $cache2,
  ));
  $chainCache
    ->delete('bar');
}