File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ https://github.com/sebastianbergmann/phpunit/issues/5614
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
6
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
7
+ $ _SERVER ['argv ' ][] = __DIR__ . '/5614/Issue5614Test.php ' ;
8
+
9
+ require_once __DIR__ . '/../../bootstrap.php ' ;
10
+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
11
+ --EXPECTF --
12
+ PHPUnit %s by Sebastian Bergmann and contributors.
13
+
14
+ Runtime: %s
15
+
16
+ . 1 / 1 (100 %)
17
+
18
+ Time: %s, Memory: %s MB
19
+
20
+ 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
+ namespace PHPUnit \TestFixture \Issue5614 ;
11
+
12
+ use PHPUnit \Framework \TestCase ;
13
+
14
+ final class Issue5614Test extends TestCase
15
+ {
16
+ public static function provideRecursiveArray (): iterable
17
+ {
18
+ $ array = [];
19
+ $ array [0 ] = &$ array ;
20
+
21
+ yield [$ array ];
22
+ }
23
+
24
+ /**
25
+ * @dataProvider provideRecursiveArray
26
+ */
27
+ public function testRecursiveArray (array $ array ): void
28
+ {
29
+ $ this ->assertTrue (true );
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments