clear() public method

public clear ( )
 public function testClear()
 {
     $namespace = 'ns';
     $key = 'key';
     $returnValue = true;
     $stub = $this->getHierarchyCacheStub();
     $stub->expects($this->once())->method('deleteItem')->with('|' . $namespace)->willReturn($returnValue);
     $pool = new NamespacedCachePool($stub, $namespace);
     $this->assertEquals($returnValue, $pool->clear($key));
 }