public function testWithFailures()
{
$app = $this->getApp();
$app['cache'] = $this->getMockCache(null, false);
$command = new CacheClear($app);
$tester = new CommandTester($command);
$tester->execute([]);
$result = $tester->getDisplay();
$this->assertRegExp('/Failed to clear cache/', $result);
}