Skip to content

Commit e50ccad

Browse files
committed
Fix tests
1 parent b259e7a commit e50ccad

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

tests/integration/FindOnSamplePhpdocLayoutTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public function testFindingOnSamplePhpdocLayout(): void
3232
include __DIR__ . '/../../examples/03-sample-phpdoc-layout.php';
3333
$basenameOf = static fn ($value) => pathinfo($value['path'], PATHINFO_BASENAME);
3434

35+
sort($result);
3536
$this->assertCount(4, $result);
36-
$this->assertSame('Bootstrap.php', $basenameOf($result[0]));
37-
$this->assertSame('Application.php', $basenameOf($result[1]));
38-
$this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[2]));
39-
$this->assertSame('MonologServiceProvider.php', $basenameOf($result[3]));
37+
$this->assertSame('Bootstrap.php', $basenameOf($result[3]));
38+
$this->assertSame('Application.php', $basenameOf($result[2]));
39+
$this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[0]));
40+
$this->assertSame('MonologServiceProvider.php', $basenameOf($result[1]));
4041
}
4142
}

tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public function testFindingOnSamplePhpdocLayout(): void
3232
include __DIR__ . '/../../examples/04-sample-phpdoc-layout-using-glob.php';
3333
$basenameOf = static fn ($value) => pathinfo($value['path'], PATHINFO_BASENAME);
3434

35+
sort($result);
3536
$this->assertCount(4, $result);
36-
$this->assertSame('Bootstrap.php', $basenameOf($result[0]));
37-
$this->assertSame('Application.php', $basenameOf($result[1]));
38-
$this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[2]));
39-
$this->assertSame('MonologServiceProvider.php', $basenameOf($result[3]));
37+
$this->assertSame('Bootstrap.php', $basenameOf($result[3]));
38+
$this->assertSame('Application.php', $basenameOf($result[2]));
39+
$this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[0]));
40+
$this->assertSame('MonologServiceProvider.php', $basenameOf($result[1]));
4041
}
4142
}

tests/unit/FinderTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public function tearDown(): void
5555
m::close();
5656
}
5757

58-
/**
59-
* @covers ::getMethod
60-
*/
6158
public function testIfNotHiddenLetsSubpathsThrough(): void
6259
{
6360
$files = ['foo/bar/.hidden/baz/not-hidden.txt'];
@@ -162,11 +159,6 @@ public function testIfNegatedAndCullsExactMatches(): void
162159
);
163160
}
164161

165-
/**
166-
* @covers ::handle
167-
* @covers ::setFilesystem
168-
* @covers ::<private>
169-
*/
170162
public function testIfCorrectFilesAreBeingYielded(): void
171163
{
172164
$isHidden = m::mock(IsHidden::class);

0 commit comments

Comments
 (0)