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