8000 Fixed tests for real · symfony/symfony@b60d937 · GitHub
[go: up one dir, main page]

Skip to content

Commit b60d937

Browse files
committed
Fixed tests for real
1 parent adef8c4 commit b60d937

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testLintCorrectFile()
3131
$ret = $tester->execute(array('filename' => array($filename)), array('verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false));
3232

3333
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
34-
$this->assertRegExp('/^ \/\/ OK in /', $tester->getDisplay());
34+
$this->assertRegExp('/^\/\/ OK in /', trim($tester->getDisplay()));
3535
}
3636

3737
public function testLintIncorrectFile()
@@ -42,7 +42,7 @@ public function testLintIncorrectFile()
4242
$ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false));
4343

4444
$this->assertEquals(1, $ret, 'Returns 1 in case of error');
45-
$this->assertRegExp('/^ ERROR in /', $tester->getDisplay());
45+
$this->assertRegExp('/^ERROR in /', trim($tester->getDisplay()));
4646
}
4747

4848
/**
@@ -65,7 +65,7 @@ public function testLintFileCompileTimeException()
6565
$ret = $tester->execute(array('filename' => array($filename)), array('decorated' => false));
6666

6767
$this->assertEquals(1, $ret, 'Returns 1 in case of error');
68-
$this->assertRegExp('/^ ERROR in /', $tester->getDisplay());
68+
$this->assertRegExp('/^ERROR in /', trim($tester->getDisplay()));
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)
0