fix tests after twig commands style changes

This commit is contained in:
Tobias Schultze 2015-10-01 20:14:11 +02:00
parent 09ff9f851d
commit 311029b9a2
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class LintCommandTest extends \PHPUnit_Framework_TestCase
$ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false)); $ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false));
$this->assertEquals(1, $ret, 'Returns 1 in case of error'); $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)); $ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false));
$this->assertEquals(1, $ret, 'Returns 1 in case of error'); $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()));
} }
/** /**

View File

@ -33,7 +33,7 @@
"symfony/security": "~2.6|~3.0.0", "symfony/security": "~2.6|~3.0.0",
"symfony/security-acl": "~2.6|~3.0.0", "symfony/security-acl": "~2.6|~3.0.0",
"symfony/stopwatch": "~2.2|~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/var-dumper": "~2.6|~3.0.0",
"symfony/expression-language": "~2.4|~3.0.0" "symfony/expression-language": "~2.4|~3.0.0"
}, },