exception-stack.phpt (1000B)
1 --TEST-- 2 phpunit ExceptionStackTest ../_files/ExceptionStackTest.php 3 --FILE-- 4 <?php 5 $_SERVER['argv'][1] = '--no-configuration'; 6 $_SERVER['argv'][2] = 'ExceptionStackTest'; 7 $_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/ExceptionStackTest.php'; 8 9 require __DIR__ . '/../bootstrap.php'; 10 PHPUnit_TextUI_Command::main(); 11 ?> 12 --EXPECTF-- 13 PHPUnit %s by Sebastian Bergmann and contributors. 14 15 EE 16 17 Time: %s, Memory: %sMb 18 19 There were 2 errors: 20 21 1) ExceptionStackTest::testPrintingChildException 22 PHPUnit_Framework_Exception: Child exception 23 message 24 Failed asserting that two arrays are equal. 25 --- Expected 26 +++ Actual 27 @@ @@ 28 Array ( 29 - 0 => 1 30 + 0 => 2 31 ) 32 33 34 %s:%i 35 36 Caused by 37 message 38 Failed asserting that two arrays are equal. 39 --- Expected 40 +++ Actual 41 @@ @@ 42 Array ( 43 - 0 => 1 44 + 0 => 2 45 ) 46 47 %s:%i 48 49 2) ExceptionStackTest::testNestedExceptions 50 Exception: One 51 52 %s:%i 53 54 Caused by 55 InvalidArgumentException: Two 56 57 %s:%i 58 59 Caused by 60 Exception: Three 61 62 %s:%i 63 64 FAILURES! 65 Tests: 2, Assertions: 1, Errors: 2.