Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/phpunit/tests/TextUI/failure-reverse-list.phpt')
-rw-r--r--vendor/phpunit/phpunit/tests/TextUI/failure-reverse-list.phpt141
1 files changed, 141 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit/tests/TextUI/failure-reverse-list.phpt b/vendor/phpunit/phpunit/tests/TextUI/failure-reverse-list.phpt
new file mode 100644
index 0000000..eb2769f
--- /dev/null
+++ b/vendor/phpunit/phpunit/tests/TextUI/failure-reverse-list.phpt
@@ -0,0 +1,141 @@
+--TEST--
+phpunit --reverse-list FailureTest ../_files/FailureTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--reverse-list';
+$_SERVER['argv'][3] = 'FailureTest';
+$_SERVER['argv'][4] = __DIR__ . '/../_files/FailureTest.php';
+
+require __DIR__ . '/../bootstrap.php';
+PHPUnit_TextUI_Command::main();
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann and contributors.
+
+FFFFFFFFFFFFF 13 / 13 (100%)
+
+Time: %s, Memory: %s
+
+There were 13 failures:
+
+1) FailureTest::testAssertStringMatchesFormatFile
+Failed asserting that format description matches text.
+--- Expected
++++ Actual
+@@ @@
+-FOO
+-
++...BAR...
+
+%s:%d
+
+2) FailureTest::testAssertFloatSameFloat
+message
+Failed asserting that 1.5 is identical to 1.0.
+
+%s:%d
+
+3) FailureTest::testAssertObjectSameNull
+message
+Failed asserting that null is identical to an object of class "stdClass".
+
+%s:%d
+
+4) FailureTest::testAssertObjectSameObject
+message
+Failed asserting that two variables reference the same object.
+
+%s:%d
+
+5) FailureTest::testAssertTextSameText
+message
+Failed asserting that two strings are identical.
+--- Expected
++++ Actual
+@@ @@
+-foo
++bar
+
+%s:%d
+
+6) FailureTest::testAssertNumericEqualsNumeric
+message
+Failed asserting that 2 matches expected 1.
+
+%s:%d
+
+7) FailureTest::testAssertStringMatchesFormat
+message
+Failed asserting that format description matches text.
+--- Expected
++++ Actual
+@@ @@
+-*%s*
++**
+
+%s:%d
+
+8) FailureTest::testAssertTextEqualsText
+message
+Failed asserting that two strings are equal.
+--- Expected
++++ Actual
+@@ @@
+ 'foo
+-bar
++baz
+ '
+
+%s:%d
+
+9) FailureTest::testAssertStringEqualsString
+message
+Failed asserting that two strings are equal.
+--- Expected
++++ Actual
+@@ @@
+-'foo'
++'bar'
+
+%s:%d
+
+10) FailureTest::testAssertNullEqualsString
+message
+Failed asserting that 'bar' matches expected null.
+
+%s:%d
+
+11) FailureTest::testAssertObjectEqualsObject
+message
+Failed asserting that two objects are equal.
+--- Expected
++++ Actual
+@@ @@
+ stdClass Object (
+- 'foo' => 'bar'
++ 'bar' => 'foo'
+ )
+
+%s:22
+
+12) FailureTest::testAssertIntegerEqualsInteger
+message
+Failed asserting that 2 matches expected 1.
+
+%s:%d
+
+13) FailureTest::testAssertArrayEqualsArray
+message
+Failed asserting that two arrays are equal.
+--- Expected
++++ Actual
+@@ @@
+ Array (
+- 0 => 1
++ 0 => 2
+ )
+
+%s:%d
+
+FAILURES!
+Tests: 13, Assertions: 14, Failures: 13.