Symfony\Component\HttpKernel\Tests\CacheClearer\Psr6CacheClearerTest::testClearPool PHP Method

testClearPool() public method

public testClearPool ( )
    public function testClearPool()
    {
        $pool = $this->getMockBuilder(CacheItemPoolInterface::class)->getMock();
        $pool
            ->expects($this->once())
            ->method('clear');

        (new Psr6CacheClearer(array('pool' => $pool)))->clearPool('pool');
    }