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

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

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