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