Skip to content

Commit fea99bb

Browse files
committed
Fix coding standards and skip test on old php-parser
- Remove same-namespace import of Property in Interface_Test - Add RequiresPackage constraint for nikic/php-parser >= 5.2 on the integration test, as older versions cannot parse interface property syntax
1 parent b19779a commit fea99bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/integration/InterfacePropertyTest.php

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

55
namespace integration;
66

7+
use EliasHaeussler\PHPUnitAttributes\Attribute\RequiresPackage;
78
use phpDocumentor\Reflection\File\LocalFile;
89
use phpDocumentor\Reflection\Php\ProjectFactory;
910
use phpDocumentor\Reflection\Php\Visibility;
@@ -12,6 +13,7 @@
1213
use PHPUnit\Framework\Attributes\CoversNothing;
1314
use PHPUnit\Framework\TestCase;
1415

16+
#[RequiresPackage('nikic/php-parser', '>= 5.2')]
1517
#[CoversNothing]
1618
final class InterfacePropertyTest extends TestCase
1719
{

tests/unit/phpDocumentor/Reflection/Php/Interface_Test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use phpDocumentor\Reflection\Fqsen;
1919
use phpDocumentor\Reflection\Location;
2020
use phpDocumentor\Reflection\Metadata\MetaDataContainer as MetaDataContainerInterface;
21-
use phpDocumentor\Reflection\Php\Property;
2221
use PHPUnit\Framework\Attributes\CoversClass;
2322
use PHPUnit\Framework\Attributes\UsesClass;
2423

0 commit comments

Comments
 (0)