Cache\Namespaced\Tests\NamespacedCachePoolTest::testCommit PHP Method

testCommit() public method

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