Skip to content

Commit

Permalink
Add tests for directory with abstract and concrete test class (with a…
Browse files Browse the repository at this point in the history
…nd without Test suffix in abstract test class name)
  • Loading branch information
sebastianbergmann committed Jan 10, 2023
1 parent a384f05 commit c0a8cb8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--TEST--
phpunit ../../../_files/abstract/with-test-suffix
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = __DIR__ . '/../../../_files/abstract/with-test-suffix';

require_once __DIR__ . '/../../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

. 1 / 1 (100%)

Time: %s, Memory: %s

OK (1 test, 1 assertion)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--TEST--
phpunit ../../../_files/abstract/without-test-suffix
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = __DIR__ . '/../../../_files/abstract/without-test-suffix';

require_once __DIR__ . '/../../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

. 1 / 1 (100%)

Time: %s, Memory: %s

OK (1 test, 1 assertion)

0 comments on commit c0a8cb8

Please sign in to comment.