Skip to content

Commit

Permalink
Merge branch '11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 21, 2024
2 parents 3ad902d + 3a077af commit ae0d3a5
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/end-to-end/regression/5760.phpt
@@ -0,0 +1,33 @@
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/5760
--XFAIL--
https://github.com/sebastianbergmann/phpunit/issues/5760
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--testdox';
$_SERVER['argv'][] = __DIR__ . '/5760/Issue5760Test.php';

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

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

E 1 / 1 (100%)

Time: %s, Memory: %s

Issue5760 (PHPUnit\TestFixture\Issue5760\Issue5760)
One
Exception: message
│ %s:19

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
25 changes: 25 additions & 0 deletions tests/end-to-end/regression/5760/Issue5760Test.php
@@ -0,0 +1,25 @@
<?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\Issue5760;

use Exception;
use PHPUnit\Framework\TestCase;

final class Issue5760Test extends TestCase
{
protected function setUp(): void
{
throw new Exception('message');
}

public function testOne(): void
{
}
}

0 comments on commit ae0d3a5

Please sign in to comment.