File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments