commit() public method

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