Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 503.phpt
1 --TEST--
2 GH-503: assertEquals() Line Ending Differences Are Obscure
3 --FILE--
4 <?php
5
6 $_SERVER['argv'][1] = '--no-configuration';
7 $_SERVER['argv'][2] = 'Issue503Test';
8 $_SERVER['argv'][3] = dirname(__FILE__) . '/503/Issue503Test.php';
9
10 require __DIR__ . '/../../bootstrap.php';
11 PHPUnit_TextUI_Command::main();
12 ?>
13 --EXPECTF--
14 PHPUnit %s by Sebastian Bergmann and contributors.
15
16 F
17
18 Time: %s, Memory: %s
19
20 There was 1 failure:
21
22 1) Issue503Test::testCompareDifferentLineEndings
23 Failed asserting that two strings are identical.
24 --- Expected
25 +++ Actual
26 @@ @@
27  #Warning: Strings contain different line endings!
28  foo
29
30 %s:%i
31
32 FAILURES!
33 Tests: 1, Assertions: 1, Failures: 1.