[2.3] Fix tests on Windows
This commit is contained in:
parent
a48d36ae31
commit
e3e5f3d661
@ -74,7 +74,7 @@ class TwigExtractorTest extends TestCase
|
||||
|
||||
/**
|
||||
* @expectedException \Twig_Error
|
||||
* @expectedExceptionMessage Unclosed "block" in "extractor/syntax_error.twig" at line 1
|
||||
* @expectedExceptionMessageRegExp /Unclosed "block" in "extractor(\/|\\)syntax_error\.twig" at line 1/
|
||||
*/
|
||||
public function testExtractSyntaxError()
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ class RouterDebugCommandTest extends \PHPUnit_Framework_TestCase
|
||||
public function testDebugAllRoutes()
|
||||
{
|
||||
$tester = $this->createCommandTester();
|
||||
$ret = $tester->execute(array('name' => null));
|
||||
$ret = $tester->execute(array('name' => null), array('decorated' => false));
|
||||
|
||||
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
|
||||
$this->assertContains('[router] Current routes', $tester->getDisplay());
|
||||
@ -31,7 +31,7 @@ class RouterDebugCommandTest extends \PHPUnit_Framework_TestCase
|
||||
public function testDebugSingleRoute()
|
||||
{
|
||||
$tester = $this->createCommandTester();
|
||||
$ret = $tester->execute(array('name' => 'foo'));
|
||||
$ret = $tester->execute(array('name' => 'foo'), array('decorated' => false));
|
||||
|
||||
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
|
||||
$this->assertContains('[router] Route "foo"', $tester->getDisplay());
|
||||
|
@ -24,7 +24,7 @@ class RouterMatchCommandTest extends \PHPUnit_Framework_TestCase
|
||||
public function testWithMatchPath()
|
||||
{
|
||||
$tester = $this->createCommandTester();
|
||||
$ret = $tester->execute(array('path_info' => '/foo', 'foo'));
|
||||
$ret = $tester->execute(array('path_info' => '/foo', 'foo'), array('decorated' => false));
|
||||
|
||||
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
|
||||
$this->assertContains('[router] Route "foo"', $tester->getDisplay());
|
||||
@ -33,7 +33,7 @@ class RouterMatchCommandTest extends \PHPUnit_Framework_TestCase
|
||||
public function testWithNotMatchPath()
|
||||
{
|
||||
$tester = $this->createCommandTester();
|
||||
$ret = $tester->execute(array('path_info' => '/test', 'foo'));
|
||||
$ret = $tester->execute(array('path_info' => '/test', 'foo'), array('decorated' => false));
|
||||
|
||||
$this->assertEquals(1, $ret, 'Returns 1 in case of failure');
|
||||
$this->assertContains('None of the routes match the path "/test"', $tester->getDisplay());
|
||||
|
Reference in New Issue
Block a user