Skip to content

Commit d8b6085

Browse files
Add test for #6102
1 parent fbf2d02 commit d8b6085

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

tests/end-to-end/regression/6102.phpt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
--TEST--
2+
https://github.com/sebastianbergmann/phpunit/issues/6102
3+
--XFAIL--
4+
https://github.com/sebastianbergmann/phpunit/issues/6102
5+
--FILE--
6+
<?php declare(strict_types=1);
7+
$_SERVER['argv'][] = '--do-not-cache-result';
8+
$_SERVER['argv'][] = '--no-configuration';
9+
$_SERVER['argv'][] = '--process-isolation';
10+
$_SERVER['argv'][] = __DIR__ . '/../../end-to-end/generic/_files/TestForDeprecatedFeatureTest.php';
11+
12+
require __DIR__ . '/../../bootstrap.php';
13+
14+
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
15+
--EXPECTF--
16+
PHPUnit %s by Sebastian Bergmann and contributors.
17+
18+
Runtime: %s
19+
20+
..FF..FF 8 / 8 (100%)
21+
22+
Time: %s, Memory: %s
23+
24+
There were 4 failures:
25+
26+
1) PHPUnit\TestFixture\Event\TestForDeprecatedFeatureTest::testExpectationOnExactDeprecationMessageWorksWhenExpectedDeprecationIsNotTriggered
27+
Expected deprecation with message "message" was not triggered
28+
29+
2) PHPUnit\TestFixture\Event\TestForDeprecatedFeatureTest::testExpectationOnExactDeprecationMessageWorksWhenUnexpectedDeprecationIsTriggered
30+
Expected deprecation with message "message" was not triggered
31+
32+
3) PHPUnit\TestFixture\Event\TestForDeprecatedFeatureTest::testExpectationOnDeprecationMessageMatchingRegularExpressionWorksWhenExpectedDeprecationIsNotTriggered
33+
Expected deprecation with message matching regular expression "/message/" was not triggered
34+
35+
4) PHPUnit\TestFixture\Event\TestForDeprecatedFeatureTest::testExpectationOnDeprecationMessageMatchingRegularExpressionWorksWhenUnepectedDeprecationIsTriggered
36+
Expected deprecation with message matching regular expression "/message/" was not triggered
37+
38+
FAILURES!
39+
Tests: 8, Assertions: 10, Failures: 4.

0 commit comments

Comments
 (0)