Skip to content

Commit

Permalink
Add test for #5164
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 4, 2023
1 parent 1a461ca commit ed44a9b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/end-to-end/regression/5164.phpt
@@ -0,0 +1,36 @@
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/5164
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--verbose';
$_SERVER['argv'][] = __DIR__ . '/5164/Issue5164Test.php';

require_once __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--XFAIL--
https://github.com/sebastianbergmann/phpunit/issues/5164
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

SS 2 / 2 (100%)

Time: %s, Memory: %s

There were 2 skipped tests:

1) Issue5074Test::testOne
message

%sIssue5074Test.php:%d

2) Issue5074Test::testTwo
message

%sIssue5074Test.php:%d

OK, but incomplete, skipped, or risky tests!
Tests: 2, Assertions: 0, Skipped: 2.
18 changes: 18 additions & 0 deletions tests/end-to-end/regression/5164/Issue5164Test.php
@@ -0,0 +1,18 @@
<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;

final class Issue5164Test extends TestCase
{
public static function setUpBeforeClass(): void
{
self::markTestSkipped('message');
}

public function testOne(): void
{
}

public function testTwo(): void
{
}
}

0 comments on commit ed44a9b

Please sign in to comment.