Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 244.phpt
1 --TEST--
2 GH-244: Expected Exception should support string codes
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--no-configuration';
6 $_SERVER['argv'][2] = '--process-isolation';
7 $_SERVER['argv'][3] = 'Issue244Test';
8 $_SERVER['argv'][4] = dirname(__FILE__) . '/244/Issue244Test.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 .FFF
17
18 Time: %s, Memory: %s
19
20 There were 3 failures:
21
22 1) Issue244Test::testFails
23 Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'.
24
25 2) Issue244Test::testFailsTooIfExpectationIsANumber
26 Failed asserting that '123StringCode' is equal to expected exception code 123.
27
28 3) Issue244Test::testFailsTooIfExceptionCodeIsANumber
29 Failed asserting that 123 is equal to expected exception code '123String'.
30
31 FAILURES!
32 Tests: 4, Assertions: 8, Failures: 3.