Cache\Prefixed\Tests\PrefixedCachePoolTest::testHasItem PHP Method

testHasItem() public method

public testHasItem ( )
    public function testHasItem()
    {
        $prefix = 'ns';
        $key = 'key';
        $returnValue = true;
        $stub = $this->getHierarchyCacheStub();
        $stub->expects($this->once())->method('hasItem')->with($prefix . $key)->willReturn($returnValue);
        $pool = new PrefixedCachePool($stub, $prefix);
        $this->assertEquals($returnValue, $pool->hasItem($key));
    }