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

testClearPublicPool() public method

public testClearPublicPool ( )
    public function testClearPublicPool()
    {
        $tester = $this->createCommandTester();
        $tester->execute(array('pools' => array('cache.public_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.public_pool', $tester->getDisplay());
        $this->assertContains('[OK] Cache was successfully cleared.', $tester->getDisplay());
    }