Symfony\Bundle\FrameworkBundle\Tests\Functional\CachePoolClearCommandTest::testClearPrivatePool PHP Method

testClearPrivatePool() public method

    public function testClearPrivatePool()
    {
        $tester = $this->createCommandTester();
        $tester->execute(array('pools' => array('cache.private_pool')), array('decorated' => false));
        $this->assertSame(0, $tester->getStatusCode(), 'cache:pool:clear exits with 0 in case of success');
        $this->assertContains('Clearing cache pool: cache.private_pool', $tester->getDisplay());
        $this->assertContains('[OK] Cache was successfully cleared.', $tester->getDisplay());
    }