Cache\Namespaced\NamespacedCachePool::commit PHP Method

commit() public method

public commit ( )
    public function commit()
    {
        return $this->cachePool->commit();
    }

Usage Example

 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());
 }