File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ https://github.com/sebastianbergmann/phpunit/issues/5795
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
6
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
7
+ $ _SERVER ['argv ' ][] = '--testdox ' ;
8
+ $ _SERVER ['argv ' ][] = __DIR__ . '/5795/Issue5795Test.php ' ;
9
+
10
+ require_once __DIR__ . '/../../bootstrap.php ' ;
11
+
12
+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
13
+ --EXPECTF --
14
+ PHPUnit %s by Sebastian Bergmann and contributors.
15
+
16
+ Runtime: %s
17
+
18
+ .. . 3 / 3 (100 %)
19
+
20
+ Time: %s, Memory: %s
21
+
22
+ Issue5795 (PHPUnit \TestFixture \Issue5795 \Issue5795)
23
+ ✔ This test should make phpunit spit a PHP Warning ! with data set #0
24
+ ✔ This test should make phpunit spit a PHP Warning ! with data set #1
25
+ ✔ This test should make phpunit spit a PHP Warning ! with data set #2
26
+
27
+ OK (3 tests, 3 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 \Issue5795 ;
11
+
12
+ use PHPUnit \Framework \TestCase ;
13
+
14
+ final class Issue5795Test extends TestCase
15
+ {
16
+ /**
17
+ * @testWith [1]
18
+ * [2]
19
+ * [3]
20
+ *
21
+ * @testdox This test should make phpunit spit a PHP Warning !
22
+ */
23
+ public function testExample ($ arg ): void
24
+ {
25
+ $ this ->assertIsInt ($ arg );
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments