1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
--TEST--
Different outcomes and issues (with TestDox summary)
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--colors=never';
$_SERVER['argv'][] = '--no-progress';
$_SERVER['argv'][] = '--display-incomplete';
$_SERVER['argv'][] = '--display-skipped';
$_SERVER['argv'][] = '--display-deprecations';
$_SERVER['argv'][] = '--display-notices';
$_SERVER['argv'][] = '--display-warnings';
$_SERVER['argv'][] = '--testdox';
$_SERVER['argv'][] = '--testdox-summary';
$_SERVER['argv'][] = __DIR__ . '/_files/OutcomeAndIssuesTest.php';
require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
Runtime: %s
Time: %s, Memory: %s
Outcome And Issues (PHPUnit\TestFixture\TestDox\OutcomeAndIssues)
✔ Success
⚠ Success but risky
⚠ Success but deprecation
⚠ Success but notice
⚠ Success but warning
✘ Failure
│
│ Failed asserting that false is true.
│
│ %sOutcomeAndIssuesTest.php:53
│
✘ Error
│
│ Exception: message
│
│ %sOutcomeAndIssuesTest.php:58
│
∅ Incomplete
│
│ message
│
│ %sOutcomeAndIssuesTest.php:63
│
↩ Skipped
Summary of tests with errors, failures, or issues:
Outcome And Issues (PHPUnit\TestFixture\TestDox\OutcomeAndIssues)
⚠ Success but risky
⚠ Success but deprecation
⚠ Success but notice
⚠ Success but warning
✘ Failure
│
│ Failed asserting that false is true.
│
│ %sOutcomeAndIssuesTest.php:53
│
✘ Error
│
│ Exception: message
│
│ %sOutcomeAndIssuesTest.php:58
│
∅ Incomplete
│
│ message
│
│ %sOutcomeAndIssuesTest.php:63
│
↩ Skipped
There was 1 risky test:
1) PHPUnit\TestFixture\TestDox\OutcomeAndIssuesTest::testSuccessButRisky
This test did not perform any assertions
%sOutcomeAndIssuesTest.php:26
--
1 test triggered 1 warning:
1) %sOutcomeAndIssuesTest.php:48
message
--
1 test triggered 1 notice:
1) %sOutcomeAndIssuesTest.php:41
message
--
1 test triggered 1 deprecation:
1) %sOutcomeAndIssuesTest.php:34
message
ERRORS!
Tests: 9, Assertions: 5, Errors: 1, Failures: 1, Warnings: 1, Deprecations: 1, Notices: 1, Skipped: 1, Incomplete: 1, Risky: 1.
|