1--TEST--
2phpunit FailureTest ../_files/FailureTest.php
3--FILE--
4<?php
5$_SERVER['argv'][1] = '--no-configuration';
6$_SERVER['argv'][2] = 'FailureTest';
7$_SERVER['argv'][3] = __DIR__ . '/../_files/FailureTest.php';
8
9require __DIR__ . '/../bootstrap.php';
10PHPUnit_TextUI_Command::main();
11--EXPECTF--
12PHPUnit %s by Sebastian Bergmann and contributors.
13
14FFFFFFFFFFFFF                                                     13 / 13 (100%)
15
16Time: %s, Memory: %s
17
18There were 13 failures:
19
201) FailureTest::testAssertArrayEqualsArray
21message
22Failed asserting that two arrays are equal.
23--- Expected
24+++ Actual
25@@ @@
26 Array (
27-    0 => 1
28+    0 => 2
29 )
30
31%s:%i
32
332) FailureTest::testAssertIntegerEqualsInteger
34message
35Failed asserting that 2 matches expected 1.
36
37%s:%i
38
393) FailureTest::testAssertObjectEqualsObject
40message
41Failed asserting that two objects are equal.
42--- Expected
43+++ Actual
44@@ @@
45 stdClass Object (
46-    'foo' => 'bar'
47+    'bar' => 'foo'
48 )
49
50%s:%i
51
524) FailureTest::testAssertNullEqualsString
53message
54Failed asserting that 'bar' matches expected null.
55
56%s:%i
57
585) FailureTest::testAssertStringEqualsString
59message
60Failed asserting that two strings are equal.
61--- Expected
62+++ Actual
63@@ @@
64-'foo'
65+'bar'
66
67%s:%i
68
696) FailureTest::testAssertTextEqualsText
70message
71Failed asserting that two strings are equal.
72--- Expected
73+++ Actual
74@@ @@
75 'foo
76-bar
77+baz
78 '
79
80%s:%i
81
827) FailureTest::testAssertStringMatchesFormat
83message
84Failed asserting that format description matches text.
85--- Expected
86+++ Actual
87@@ @@
88-*%s*
89+**
90
91%s:%i
92
938) FailureTest::testAssertNumericEqualsNumeric
94message
95Failed asserting that 2 matches expected 1.
96
97%s:%i
98
999) FailureTest::testAssertTextSameText
100message
101Failed asserting that two strings are identical.
102--- Expected
103+++ Actual
104@@ @@
105-foo
106+bar
107
108%s:%i
109
11010) FailureTest::testAssertObjectSameObject
111message
112Failed asserting that two variables reference the same object.
113
114%s:%i
115
11611) FailureTest::testAssertObjectSameNull
117message
118Failed asserting that null is identical to an object of class "stdClass".
119
120%s:%i
121
12212) FailureTest::testAssertFloatSameFloat
123message
124Failed asserting that 1.5 is identical to 1.0.
125
126%s:%i
127
12813) FailureTest::testAssertStringMatchesFormatFile
129Failed asserting that format description matches text.
130--- Expected
131+++ Actual
132@@ @@
133-FOO
134-
135+...BAR...
136
137%s:%i
138
139FAILURES!
140Tests: 13, Assertions: 14, Failures: 13.
141