Skip to content

Commit

Permalink
Group tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 25, 2024
1 parent 5ae880f commit be83252
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
namespace PHPUnit\Metadata;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;

#[CoversClass(AnnotationsAreNotSupportedForInternalClassesException::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/annotations')]
final class AnnotationsAreNotSupportedForInternalClassesExceptionTest extends TestCase
{
public function testConstructsMessageCorrectly(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Api/CodeCoverageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use function range;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\CodeCoverageException;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -47,6 +48,7 @@

#[CoversClass(CodeCoverage::class)]
#[Small]
#[Group('metadata')]
final class CodeCoverageTest extends TestCase
{
public static function linesToBeCoveredProvider(): array
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Api/DataProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Metadata\Api;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\InvalidDataProviderException;
use PHPUnit\Framework\TestCase;
Expand All @@ -19,6 +20,7 @@

#[CoversClass(DataProvider::class)]
#[Small]
#[Group('metadata')]
final class DataProviderTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Api/GroupsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
use PHPUnit\TestFixture\LargeGroupAttributesTest;
Expand All @@ -21,6 +22,7 @@

#[CoversClass(Groups::class)]
#[Small]
#[Group('metadata')]
final class GroupsTest extends TestCase
{
public static function provider(): array
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Api/HookMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
namespace PHPUnit\Metadata\Api;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
use PHPUnit\TestFixture\TestWithHookMethodsTest;
use PHPUnit\TestFixture\TestWithoutHookMethodsTest;

#[CoversClass(HookMethods::class)]
#[Small]
#[Group('metadata')]
final class HookMethodsTest extends TestCase
{
public function testReturnsDefaultHookMethodsForClassThatDoesNotExist(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Api/RequirementsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;

#[CoversClass(Requirements::class)]
#[Small]
#[Group('metadata')]
final class RequirementsTest extends TestCase
{
public static function missingRequirementsProvider(): array
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/MetadataCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Metadata;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\UsesClass;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -60,6 +61,7 @@
#[UsesClass(UsesDefaultClass::class)]
#[UsesClass(UsesFunction::class)]
#[Small]
#[Group('metadata')]
final class MetadataCollectionTest extends TestCase
{
public function testCanBeEmpty(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/MetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Metadata;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
use PHPUnit\Metadata\Version\ComparisonRequirement;
Expand Down Expand Up @@ -61,6 +62,7 @@
#[CoversClass(UsesFunction::class)]
#[CoversClass(WithoutErrorHandler::class)]
#[Small]
#[Group('metadata')]
final class MetadataTest extends TestCase
{
public function testCanBeAfter(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/Annotation/RegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Metadata\Annotation;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\UsesClass;
use PHPUnit\Framework\TestCase;
Expand All @@ -23,6 +24,8 @@
#[CoversClass(Registry::class)]
#[UsesClass(DocBlock::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/annotations')]
final class RegistryTest extends TestCase
{
public function testRegistryLookupWithExistingClassAnnotation(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/AnnotationParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
namespace PHPUnit\Metadata\Parser;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;

#[CoversClass(AnnotationParser::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/annotations')]
final class AnnotationParserTest extends AnnotationParserTestCase
{
protected function parser(): Parser
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Parser/AttributeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
#[CoversClass(UsesFunction::class)]
#[CoversClass(WithoutErrorHandler::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/attributes')]
final class AttributeParserTest extends AttributeParserTestCase
{
protected function parser(): Parser
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/CachedAnnotationParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
namespace PHPUnit\Metadata\Parser;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;

#[CoversClass(CachingParser::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/annotations')]
final class CachedAnnotationParserTest extends AnnotationParserTestCase
{
protected function parser(): Parser
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/CachedAttributeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
namespace PHPUnit\Metadata\Parser;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;

#[CoversClass(CachingParser::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/attributes')]
final class CachedAttributeParserTest extends AttributeParserTestCase
{
protected function parser(): Parser
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/ChainedAnnotationParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
namespace PHPUnit\Metadata\Parser;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Metadata\MetadataCollection;

#[CoversClass(ParserChain::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/annotations')]
final class ChainedAnnotationParserTest extends AnnotationParserTestCase
{
protected function parser(): Parser
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/Metadata/Parser/ChainedAttributeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
namespace PHPUnit\Metadata\Parser;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Metadata\MetadataCollection;

#[CoversClass(ParserChain::class)]
#[Small]
#[Group('metadata')]
#[Group('metadata/attributes')]
final class ChainedAttributeParserTest extends AttributeParserTestCase
{
protected function parser(): Parser
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/Metadata/Version/RequirementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use PharIo\Version\VersionConstraintParser;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\UsesClass;
use PHPUnit\Framework\TestCase;
Expand All @@ -25,6 +26,7 @@
#[CoversClass(Requirement::class)]
#[UsesClass(VersionComparisonOperator::class)]
#[Small]
#[Group('metadata')]
final class RequirementTest extends TestCase
{
public static function constraintProvider(): array
Expand Down

0 comments on commit be83252

Please sign in to comment.