Skip to content

Commit a7c7ae4

Browse files
Use different test fixture
1 parent 1cacb78 commit a7c7ae4

File tree

4 files changed

+13
-29
lines changed

4 files changed

+13
-29
lines changed

tests/end-to-end/cli/list-test-files/list-phpt-test-files.phpt

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
--TEST--
2-
phpunit --list-test-files --exclude-group group ../../../_files/Metadata/Attribute/tests/GroupTest.php
2+
phpunit --list-test-files --exclude-group one ../../_files/listing-tests-and-groups
33
--FILE--
44
<?php declare(strict_types=1);
55
$_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--list-test-files';
77
$_SERVER['argv'][] = '--exclude-group';
8-
$_SERVER['argv'][] = 'group';
9-
$_SERVER['argv'][] = __DIR__.'/../../../_files/Metadata/Attribute/tests/GroupTest.php';
8+
$_SERVER['argv'][] = 'one';
9+
$_SERVER['argv'][] = __DIR__.'/../../_files/listing-tests-and-groups';
1010

1111
require_once __DIR__ . '/../../../bootstrap.php';
1212
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1313
--EXPECTF--
1414
PHPUnit %s by Sebastian Bergmann and contributors.
1515

1616
Available test files:
17+
- %slisting-tests-and-groups%sExampleTest.php
18+
- %slisting-tests-and-groups%sexample.phpt
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
--TEST--
2-
phpunit --list-test-files --group group ../../../_files/Metadata/Attribute/tests/
2+
phpunit --list-test-files --group one ../../_files/listing-tests-and-groups
33
--FILE--
44
<?php declare(strict_types=1);
55
$_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--list-test-files';
77
$_SERVER['argv'][] = '--group';
8-
$_SERVER['argv'][] = 'group';
9-
$_SERVER['argv'][] = __DIR__.'/../../../_files/Metadata/Attribute/tests/';
8+
$_SERVER['argv'][] = 'one';
9+
$_SERVER['argv'][] = __DIR__.'/../../_files/listing-tests-and-groups';
1010

1111
require_once __DIR__ . '/../../../bootstrap.php';
1212
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1313
--EXPECTF--
1414
PHPUnit %s by Sebastian Bergmann and contributors.
1515

1616
Available test files:
17-
- %Attribute%sGroupTest.php
17+
- %slisting-tests-and-groups%sExampleTest.php
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
--TEST--
2-
phpunit --list-test-files --configuration ../../../_files/basic/configuration.basic.xml
2+
phpunit --list-test-files ../../_files/listing-tests-and-groups
33
--FILE--
44
<?php declare(strict_types=1);
55
$_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--list-test-files';
7-
$_SERVER['argv'][] = '--configuration';
8-
$_SERVER['argv'][] = __DIR__.'/../../_files/basic/configuration.basic.xml';
7+
$_SERVER['argv'][] = __DIR__.'/../../_files/listing-tests-and-groups';
98

109
require_once __DIR__ . '/../../../bootstrap.php';
1110
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1211
--EXPECTF--
1312
PHPUnit %s by Sebastian Bergmann and contributors.
1413

1514
Available test files:
16-
- %send-to-end%sSetUpBeforeClassTest.php
17-
- %send-to-end%sSetUpTest.php
18-
- %send-to-end%sStatusTest.php
19-
- %send-to-end%sTearDownAfterClassTest.php
15+
- %slisting-tests-and-groups%sExampleTest.php
16+
- %slisting-tests-and-groups%sexample.phpt

0 commit comments

Comments
 (0)