Skip to content

Commit d2a747a

Browse files
Merge branch '8.5' into 9.6
* 8.5: Add test for #6406
2 parents 11a8617 + a548aa3 commit d2a747a

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
https://github.com/sebastianbergmann/phpunit/issues/6406
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--no-configuration';
7+
$_SERVER['argv'][] = __DIR__ . '/6406/Issue6406Test.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+
.. 2 / 2 (100%)
16+
17+
Time: %s, Memory: %s
18+
19+
OK (2 tests, 2 assertions)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
namespace PHPUnit\TestFixture\Issue6406;
11+
12+
use const INF;
13+
use const NAN;
14+
use PHPUnit\Framework\TestCase;
15+
16+
final class Issue6406Test extends TestCase
17+
{
18+
public static function provider(): array
19+
{
20+
return [
21+
'inf' => [INF],
22+
'nan' => [NAN],
23+
];
24+
}
25+
26+
/**
27+
* @dataProvider provider
28+
*/
29+
public function testOne($value): void
30+
{
31+
$this->assertTrue(true);
32+
}
33+
}

0 commit comments

Comments
 (0)