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

testDeleteItem() public method

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