Skip to content

Commit

Permalink
Merge branch '10.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 17, 2023
2 parents 233b23f + e2355db commit 27e37b9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
31 changes: 31 additions & 0 deletions 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--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = __DIR__ . '/5493';

require_once __DIR__ . '/../../bootstrap.php';

(new PHPUnit\TextUI\Application)->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.
26 changes: 26 additions & 0 deletions tests/end-to-end/regression/5493/Issue5493Test.php
@@ -0,0 +1,26 @@
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* 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);
}
}

0 comments on commit 27e37b9

Please sign in to comment.