diff --git a/tests/end-to-end/regression/5493.phpt b/tests/end-to-end/regression/5493.phpt new file mode 100644 index 00000000000..8dd1d687b5f --- /dev/null +++ b/tests/end-to-end/regression/5493.phpt @@ -0,0 +1,31 @@ +--TEST-- +https://github.com/sebastianbergmann/phpunit/issues/5493 +--XFAIL-- +https://github.com/sebastianbergmann/phpunit/issues/5493 +--FILE-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +Runtime: %s + +F 1 / 1 (100%) + +Time: %s, Memory: %s + +There was 1 failure: + +1) PHPUnit\TestFixture\Issue5493\Issue5493Test::testOne +Failed asserting that true is false. + +%sIssue5493Test.php:19 + +FAILURES! +Tests: 1, Assertions: 1, Failures: 1. diff --git a/tests/end-to-end/regression/5493/Issue5493Test.php b/tests/end-to-end/regression/5493/Issue5493Test.php new file mode 100644 index 00000000000..5be15f4d06f --- /dev/null +++ b/tests/end-to-end/regression/5493/Issue5493Test.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture\Issue5493; + +use PHPUnit\Framework\TestCase; + +final class Issue5493Test extends TestCase +{ + protected function setUp(): void + { + /** @noinspection PhpUnitAssertCanBeReplacedWithFailInspection */ + $this->assertTrue(false); + } + + public function testOne(): void + { + $this->assertTrue(true); + } +}