File tree Expand file tree Collapse file tree 9 files changed +153
-26
lines changed Expand file tree Collapse file tree 9 files changed +153
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter FooTest tests/FooTest.php
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
8
+ $ _SERVER ['argv ' ][] = '--filter ' ;
9
+ $ _SERVER ['argv ' ][] = 'FooTest ' ;
10
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups/tests/FooTest.php ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' started
18
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' ended
19
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testTwo ' started
20
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testTwo ' ended
21
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testThree ' started
22
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testThree ' ended
23
+
24
+
25
+ Time: %s, Memory: %s
26
+
27
+ OK (3 tests, 3 assertions)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter FooTest
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--configuration ' ;
8
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups ' ;
9
+ $ _SERVER ['argv ' ][] = '--filter ' ;
10
+ $ _SERVER ['argv ' ][] = 'FooTest ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' started
18
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' ended
19
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testTwo ' started
20
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testTwo ' ended
21
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testThree ' started
22
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testThree ' ended
23
+
24
+
25
+ Time: %s, Memory: %s
26
+
27
+ OK (3 tests, 3 assertions)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter BarTest tests/FooTest.php
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
8
+ $ _SERVER ['argv ' ][] = '--filter ' ;
9
+ $ _SERVER ['argv ' ][] = 'BarTest ' ;
10
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups/tests/FooTest.php ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ No tests executed!
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter BarTest
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--configuration ' ;
8
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups ' ;
9
+ $ _SERVER ['argv ' ][] = '--filter ' ;
10
+ $ _SERVER ['argv ' ][] = 'BarTest ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ No tests executed!
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- phpunit --filter BankAccountTest ../../_files/BankAccountTest .php
2
+ phpunit --filter testOne tests/FooTest .php
3
3
--FILE--
4
4
<?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
5
6
$ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
6
7
$ _SERVER ['argv ' ][] = '--no-configuration ' ;
7
8
$ _SERVER ['argv ' ][] = '--filter ' ;
8
- $ _SERVER ['argv ' ][] = 'BankAccountTest ' ;
9
- $ _SERVER ['argv ' ][] = __DIR__ . '/../../ _files/BankAccountTest .php ' ;
9
+ $ _SERVER ['argv ' ][] = 'testOne ' ;
10
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups/tests/FooTest .php ' ;
10
11
11
12
require_once __DIR__ . '/../../bootstrap.php ' ;
12
13
PHPUnit \TextUI \Command::main ();
13
14
--EXPECTF --
14
15
PHPUnit %s by Sebastian Bergmann and contributors.
15
16
16
- . .. 3 / 3 (100 %)
17
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' started
18
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' ended
19
+
17
20
18
21
Time: %s, Memory: %s
19
22
20
- OK (3 tests, 3 assertions )
23
+ OK (1 test, 1 assertion )
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter testOne
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--configuration ' ;
8
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups ' ;
9
+ $ _SERVER ['argv ' ][] = '--filter ' ;
10
+ $ _SERVER ['argv ' ][] = 'testOne ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' started
18
+ Test 'PHPUnit\TestFixture\Groups\FooTest::testOne ' ended
19
+
20
+
21
+ Time: %s, Memory: %s
22
+
23
+ OK (1 test, 1 assertion)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter testFoo tests/FooTest.php
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
8
+ $ _SERVER ['argv ' ][] = '--filter ' ;
9
+ $ _SERVER ['argv ' ][] = 'testFoo ' ;
10
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups/tests/FooTest.php ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ No tests executed!
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ phpunit --filter testFoo
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--debug ' ;
6
+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
7
+ $ _SERVER ['argv ' ][] = '--configuration ' ;
8
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../_files/groups ' ;
9
+ $ _SERVER ['argv ' ][] = '--filter ' ;
10
+ $ _SERVER ['argv ' ][] = 'testFoo ' ;
11
+
12
+ require_once __DIR__ . '/../../bootstrap.php ' ;
13
+ PHPUnit \TextUI \Command::main ();
14
+ --EXPECTF --
15
+ PHPUnit %s by Sebastian Bergmann and contributors.
16
+
17
+ No tests executed!
You can’t perform that action at this time.
0 commit comments