From 612a8da350a9fa6f604202da643726be08156474 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Tue, 10 Jan 2023 07:56:19 +0100 Subject: [PATCH] Add test for abstract test case class without Test suffix in class name --- tests/_files/AbstractTestCase.php | 20 ++++++++++++++ ...abstract-test-class-with-test-suffix.phpt} | 0 ...stract-test-class-without-test-suffix.phpt | 27 +++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 tests/_files/AbstractTestCase.php rename tests/end-to-end/generic/{abstract-test-class.phpt => abstract-test-class-with-test-suffix.phpt} (100%) create mode 100644 tests/end-to-end/generic/abstract-test-class-without-test-suffix.phpt diff --git a/tests/_files/AbstractTestCase.php b/tests/_files/AbstractTestCase.php new file mode 100644 index 00000000000..24967dfea54 --- /dev/null +++ b/tests/_files/AbstractTestCase.php @@ -0,0 +1,20 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture; + +use PHPUnit\Framework\TestCase; + +abstract class AbstractTestCase extends TestCase +{ + public function testOne(): void + { + $this->assertTrue(true); + } +} diff --git a/tests/end-to-end/generic/abstract-test-class.phpt b/tests/end-to-end/generic/abstract-test-class-with-test-suffix.phpt similarity index 100% rename from tests/end-to-end/generic/abstract-test-class.phpt rename to tests/end-to-end/generic/abstract-test-class-with-test-suffix.phpt diff --git a/tests/end-to-end/generic/abstract-test-class-without-test-suffix.phpt b/tests/end-to-end/generic/abstract-test-class-without-test-suffix.phpt new file mode 100644 index 00000000000..f8fb98d865b --- /dev/null +++ b/tests/end-to-end/generic/abstract-test-class-without-test-suffix.phpt @@ -0,0 +1,27 @@ +--TEST-- +phpunit ../../_files/AbstractTestCase.php +--FILE-- +