Skip to content

Commit af4ed7f

Browse files
committed
Fix: Remove duplicated test
1 parent e2ab0fc commit af4ed7f

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

test/Unit/ConstructsTest.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,7 @@ public static function provideScenarioWithoutClassyConstructs(): \Generator
107107

108108
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp74')]
109109
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp81')]
110-
public function testFromSourceReturnsListOfClassyConstructsWithoutFileNamesWhenClassyConstructsHaveBeenFoundBeforePhp81(Test\Util\Scenario $scenario): void
111-
{
112-
$constructs = Constructs::fromSource($scenario->source());
113-
114-
$expected = \array_map(static function (Construct $construct): Construct {
115-
return Construct::fromName($construct->name());
116-
}, $scenario->constructsSortedByName());
117-
118-
self::assertIsList($constructs);
119-
self::assertEquals($expected, $constructs);
120-
}
121-
122-
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp74')]
123-
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp81')]
124-
public function testFromSourceReturnsListOfClassyConstructsWithoutFileNamesWhenClassyConstructsHaveBeenFoundOnPhp81(Test\Util\Scenario $scenario): void
110+
public function testFromSourceReturnsListOfClassyConstructs(Test\Util\Scenario $scenario): void
125111
{
126112
$constructs = Constructs::fromSource($scenario->source());
127113

@@ -157,7 +143,7 @@ public function testFromDirectoryReturnsEmptyArrayWhenNoClassyConstructsHaveBeen
157143

158144
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp74')]
159145
#[Framework\Attributes\DataProvider('provideScenarioWithClassyConstructsOnPhp81')]
160-
public function testFromDirectoryReturnsListOfClassyConstructsSortedByNameWhenClassyConstructsHaveBeenFoundBeforePhp81(Test\Util\Scenario $scenario): void
146+
public function testFromDirectoryReturnsListOfClassyConstructs(Test\Util\Scenario $scenario): void
161147
{
162148
$constructs = Constructs::fromDirectory($scenario->directory());
163149

0 commit comments

Comments
 (0)