Skip to content

Commit ecf888b

Browse files
committed
Drop testdox and prefer-lowest tests on non-8.1 php versions
1 parent e639660 commit ecf888b

10 files changed

Lines changed: 6 additions & 17 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
1515
os: [ ubuntu-latest, macos-latest, windows-latest ]
1616
stability: [ lowest, stable ]
17+
exclude:
18+
- { php: '8.2', stability: lowest }
19+
- { php: '8.3', stability: lowest }
20+
- { php: '8.4', stability: lowest }
21+
- { php: '8.5', stability: lowest }
1722
steps:
1823
- name: Checkout
1924
uses: actions/checkout@v7

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"test:unit": ["test", "phpunit", "unit"]
8989
},
9090
"scripts": {
91-
"test:unit": "phpunit --testdox"
91+
"test:unit": "phpunit"
9292
},
9393
"minimum-stability": "dev",
9494
"prefer-stable": true

‎libs/bridge/phpstan/tests/AttributeTypeSyntaxRuleTest.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
use PHPStan\Analyser\Error;
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
10-
use PHPUnit\Framework\Attributes\Group;
1110
use TypeLang\Mapper\Bridge\PHPStan\AttributeTypeSyntaxRule;
1211
use TypeLang\Mapper\Bridge\PHPStan\TypeSyntaxChecker;
1312

1413
/**
1514
* @extends RuleTestCase<AttributeTypeSyntaxRule>
1615
*/
17-
#[Group('unit'), Group('type-lang/mapper')]
1816
final class AttributeTypeSyntaxRuleTest extends RuleTestCase
1917
{
2018
protected function getRule(): Rule

‎libs/bridge/phpstan/tests/MethodCallTypeSyntaxRuleTest.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
use PHPStan\Analyser\Error;
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
10-
use PHPUnit\Framework\Attributes\Group;
1110
use TypeLang\Mapper\Bridge\PHPStan\MethodCallTypeSyntaxRule;
1211
use TypeLang\Mapper\Bridge\PHPStan\TypeSyntaxChecker;
1312

1413
/**
1514
* @extends RuleTestCase<MethodCallTypeSyntaxRule>
1615
*/
17-
#[Group('unit'), Group('type-lang/mapper')]
1816
final class MethodCallTypeSyntaxRuleTest extends RuleTestCase
1917
{
2018
protected function getRule(): Rule

‎libs/component/coercer/tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
namespace TypeLang\Mapper\Coercer\Tests;
66

77
use PHPUnit\Framework\Attributes\DataProvider;
8-
use PHPUnit\Framework\Attributes\Group;
98
use PHPUnit\Framework\TestCase as BaseTestCase;
109
use TypeLang\Mapper\Coercer\CoercerInterface;
1110
use TypeLang\Mapper\Coercer\Tests\Stub\IntBackedEnumStub;
1211
use TypeLang\Mapper\Coercer\Tests\Stub\StringableStub;
1312
use TypeLang\Mapper\Coercer\Tests\Stub\StringBackedEnumStub;
1413
use TypeLang\Mapper\Coercer\Tests\Stub\UnitEnumStub;
1514

16-
#[Group('unit'), Group('type-lang/mapper')]
1715
abstract class TestCase extends BaseTestCase
1816
{
1917
/**

‎libs/component/instantiator/tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
namespace TypeLang\Mapper\Instantiator\Tests;
66

7-
use PHPUnit\Framework\Attributes\Group;
87
use PHPUnit\Framework\TestCase as BaseTestCase;
98

10-
#[Group('unit'), Group('type-lang/instantiator')]
119
abstract class TestCase extends BaseTestCase
1210
{
1311
/**

‎libs/component/mapping/tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace TypeLang\Mapper\Mapping\Tests;
66

7-
use PHPUnit\Framework\Attributes\Group;
87
use PHPUnit\Framework\TestCase as BaseTestCase;
98
use TypeLang\Mapper\Mapping\Exception\InvalidMetadataException;
109
use TypeLang\Mapper\Mapping\Exception\MetadataException;
@@ -24,7 +23,6 @@
2423
use TypeLang\PhpDoc\Platform\StandardPlatform;
2524
use TypeLang\Type\TypeNode;
2625

27-
#[Group('unit'), Group('type-lang/mapper')]
2826
abstract class TestCase extends BaseTestCase
2927
{
3028
/**

‎libs/component/naming/tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace TypeLang\Mapper\Naming\Tests;
66

7-
use PHPUnit\Framework\Attributes\Group;
87
use PHPUnit\Framework\TestCase as BaseTestCase;
98

10-
#[Group('unit'), Group('type-lang/mapper')]
119
abstract class TestCase extends BaseTestCase {}

‎libs/component/type-matcher/tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace TypeLang\Mapper\TypeMatcher\Tests;
66

7-
use PHPUnit\Framework\Attributes\Group;
87
use PHPUnit\Framework\TestCase as BaseTestCase;
98

10-
#[Group('unit'), Group('type-lang/mapper')]
119
abstract class TestCase extends BaseTestCase {}

‎tests/TestCase.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace TypeLang\Mapper\Tests;
66

7-
use PHPUnit\Framework\Attributes\Group;
87
use PHPUnit\Framework\TestCase as BaseTestCase;
98
use TypeLang\Mapper\Configuration;
109
use TypeLang\Mapper\Diagnostics\Printer\Value\ShortValuePrinter;
@@ -27,7 +26,6 @@
2726
* Every assertion of a conversion checks the predicate too: `isX()` must
2827
* agree with `X()` on the same value.
2928
*/
30-
#[Group('unit'), Group('type-lang/mapper')]
3129
abstract class TestCase extends BaseTestCase
3230
{
3331
/**

0 commit comments

Comments
 (0)