Skip to content

Commit

Permalink
test: run all tests since min php is 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jul 22, 2022
1 parent 3a9b945 commit 7cf9a39
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/ClassExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use Cdn77\EntityFqnExtractor\Fixtures\SomeDirectory\ClassFixture;
use Generator;

use const PHP_VERSION_ID;

final class ClassExtractorTest extends TestCaseBase
{
public function testGet(): void
Expand Down Expand Up @@ -67,10 +65,7 @@ public function testGetThrows(string $expectedMessage, string $path): void
/** @return Generator<string, array{string, string}> */
public function dataProviderGetThrows(): Generator
{
if (PHP_VERSION_ID >= 80100) {
yield 'enum' => ['There is no class in a file', '/Fixtures/SomeDirectory/EnumFixture.php'];
}

yield 'enum' => ['There is no class in a file', '/Fixtures/SomeDirectory/EnumFixture.php'];
yield 'interface' => ['There is no class in a file', '/Fixtures/SomeDirectory/InterfaceFixture.php'];
yield 'trait' => ['There is no class in a file', '/Fixtures/SomeDirectory/TraitFixture.php'];
yield 'multiple classes' => [
Expand Down

0 comments on commit 7cf9a39

Please sign in to comment.