Cache\Prefixed\Tests\PrefixedCachePoolTest::testClear PHP Метод

testClear() публичный Метод

public testClear ( )
    public function testClear()
    {
        $prefix = 'ns';
        $key = 'key';
        $returnValue = true;
        $stub = $this->getHierarchyCacheStub();
        $stub->expects($this->once())->method('clear')->willReturn($returnValue);
        $pool = new PrefixedCachePool($stub, $prefix);
        $this->assertEquals($returnValue, $pool->clear($key));
    }