File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +53
-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+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
12+ --EXPECTF --
13+ PHPUnit %s by Sebastian Bergmann and contributors.
14+
15+ Runtime: %s
16+
17+ .. 2 / 2 (100 %)
18+
19+ Time: %s, Memory: %s
20+
21+ 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 \Attributes \DataProvider ;
15+ use PHPUnit \Framework \TestCase ;
16+
17+ final class Issue6406Test extends TestCase
18+ {
19+ public static function provider (): array
20+ {
21+ return [
22+ 'inf ' => [INF ],
23+ 'nan ' => [NAN ],
24+ ];
25+ }
26+
27+ #[DataProvider('provider ' )]
28+ public function testOne ($ value ): void
29+ {
30+ $ this ->assertTrue (true );
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments