Skip to content

Commit 701f09c

Browse files
Merge branch '8.5' into 9.6
2 parents 07289f0 + 98b3a35 commit 701f09c

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
https://github.com/sebastianbergmann/phpunit/issues/5288
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--no-configuration';
7+
$_SERVER['argv'][] = __DIR__ . '/5288/Issue5288Test.php';
8+
9+
require_once __DIR__ . '/../../bootstrap.php';
10+
11+
PHPUnit\TextUI\Command::main();
12+
--EXPECTF--
13+
PHPUnit %s by Sebastian Bergmann and contributors.
14+
15+
. 1 / 1 (100%)
16+
17+
Time: %s, Memory: %s
18+
19+
OK (1 test, 1 assertion)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
use PHPUnit\Framework\TestCase;
11+
12+
final class Issue5288Test extends TestCase
13+
{
14+
public static function provider(): array
15+
{
16+
return [[true]];
17+
}
18+
19+
/**
20+
* @dataProvider provider()
21+
*/
22+
public function testOne(bool $value): void
23+
{
24+
$this->assertTrue($value);
25+
}
26+
}

0 commit comments

Comments
 (0)