MDL-37780 make sure there are no windows line endings in test files

This commit is contained in:
Petr Škoda
2013-01-30 21:23:29 +01:00
parent a629ad3dff
commit 774d1d2429
+13
View File
@@ -122,6 +122,19 @@ class core_phpunit_basic_testcase extends basic_testcase {
$this->assertNotEmpty(new stdClass());
}
/**
* Make sure there are no sloppy Windows line endings
* that would break our tests.
*/
public function test_lineendings() {
$string = <<<STRING
a
b
STRING;
$this->assertSame("a\nb", $string, 'Make sure all project files are checked out with unix line endings.');
}
/**
* Make sure asserts in setUp() do not create problems.
*/