Skip to content

Commit ed44a9b

Browse files
Add test for #5164
1 parent 1a461ca commit ed44a9b

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

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

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
--TEST--
2+
https://github.com/sebastianbergmann/phpunit/issues/5164
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--no-configuration';
7+
$_SERVER['argv'][] = '--verbose';
8+
$_SERVER['argv'][] = __DIR__ . '/5164/Issue5164Test.php';
9+
10+
require_once __DIR__ . '/../../bootstrap.php';
11+
PHPUnit\TextUI\Command::main();
12+
--XFAIL--
13+
https://github.com/sebastianbergmann/phpunit/issues/5164
14+
--EXPECTF--
15+
PHPUnit %s by Sebastian Bergmann and contributors.
16+
17+
Runtime: %s
18+
19+
SS 2 / 2 (100%)
20+
21+
Time: %s, Memory: %s
22+
23+
There were 2 skipped tests:
24+
25+
1) Issue5074Test::testOne
26+
message
27+
28+
%sIssue5074Test.php:%d
29+
30+
2) Issue5074Test::testTwo
31+
message
32+
33+
%sIssue5074Test.php:%d
34+
35+
OK, but incomplete, skipped, or risky tests!
36+
Tests: 2, Assertions: 0, Skipped: 2.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php declare(strict_types=1);
2+
use PHPUnit\Framework\TestCase;
3+
4+
final class Issue5164Test extends TestCase
5+
{
6+
public static function setUpBeforeClass(): void
7+
{
8+
self::markTestSkipped('message');
9+
}
10+
11+
public function testOne(): void
12+
{
13+
}
14+
15+
public function testTwo(): void
16+
{
17+
}
18+
}

0 commit comments

Comments
 (0)