diff --git a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php index 4c2aaeb924..f5d8a9b0b5 100644 --- a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php @@ -42,7 +42,7 @@ class LintCommandTest extends \PHPUnit_Framework_TestCase $ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false)); $this->assertEquals(1, $ret, 'Returns 1 in case of error'); - $this->assertRegExp('/^ERROR in /', trim($tester->getDisplay())); + $this->assertRegExp('/ERROR in \S+ \(line /', trim($tester->getDisplay())); } /** @@ -65,7 +65,7 @@ class LintCommandTest extends \PHPUnit_Framework_TestCase $ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false)); $this->assertEquals(1, $ret, 'Returns 1 in case of error'); - $this->assertRegExp('/^ERROR in /', trim($tester->getDisplay())); + $this->assertRegExp('/ERROR in \S+ \(line /', trim($tester->getDisplay())); } /** diff --git a/src/Symfony/Bridge/Twig/composer.json b/src/Symfony/Bridge/Twig/composer.json index f56133daaa..fc46cadb12 100644 --- a/src/Symfony/Bridge/Twig/composer.json +++ b/src/Symfony/Bridge/Twig/composer.json @@ -33,7 +33,7 @@ "symfony/security": "~2.6|~3.0.0", "symfony/security-acl": "~2.6|~3.0.0", "symfony/stopwatch": "~2.2|~3.0.0", - "symfony/console": "~2.7|~3.0.0", + "symfony/console": "~2.8|~3.0.0", "symfony/var-dumper": "~2.6|~3.0.0", "symfony/expression-language": "~2.4|~3.0.0" },