diff --git a/tests/integration/FindOnSamplePhpdocLayoutTest.php b/tests/integration/FindOnSamplePhpdocLayoutTest.php index 767259a..e261682 100644 --- a/tests/integration/FindOnSamplePhpdocLayoutTest.php +++ b/tests/integration/FindOnSamplePhpdocLayoutTest.php @@ -32,10 +32,11 @@ public function testFindingOnSamplePhpdocLayout(): void include __DIR__ . '/../../examples/03-sample-phpdoc-layout.php'; $basenameOf = static fn ($value) => pathinfo($value['path'], PATHINFO_BASENAME); + sort($result); $this->assertCount(4, $result); - $this->assertSame('Bootstrap.php', $basenameOf($result[0])); - $this->assertSame('Application.php', $basenameOf($result[1])); - $this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[2])); - $this->assertSame('MonologServiceProvider.php', $basenameOf($result[3])); + $this->assertSame('Bootstrap.php', $basenameOf($result[3])); + $this->assertSame('Application.php', $basenameOf($result[2])); + $this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[0])); + $this->assertSame('MonologServiceProvider.php', $basenameOf($result[1])); } } diff --git a/tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php b/tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php index 556d949..3c680dd 100644 --- a/tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php +++ b/tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php @@ -32,10 +32,11 @@ public function testFindingOnSamplePhpdocLayout(): void include __DIR__ . '/../../examples/04-sample-phpdoc-layout-using-glob.php'; $basenameOf = static fn ($value) => pathinfo($value['path'], PATHINFO_BASENAME); + sort($result); $this->assertCount(4, $result); - $this->assertSame('Bootstrap.php', $basenameOf($result[0])); - $this->assertSame('Application.php', $basenameOf($result[1])); - $this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[2])); - $this->assertSame('MonologServiceProvider.php', $basenameOf($result[3])); + $this->assertSame('Bootstrap.php', $basenameOf($result[3])); + $this->assertSame('Application.php', $basenameOf($result[2])); + $this->assertSame('JmsSerializerServiceProvider.php', $basenameOf($result[0])); + $this->assertSame('MonologServiceProvider.php', $basenameOf($result[1])); } } diff --git a/tests/unit/FinderTest.php b/tests/unit/FinderTest.php index 7919fcd..681da2a 100644 --- a/tests/unit/FinderTest.php +++ b/tests/unit/FinderTest.php @@ -55,9 +55,6 @@ public function tearDown(): void m::close(); } - /** - * @covers ::getMethod - */ public function testIfNotHiddenLetsSubpathsThrough(): void { $files = ['foo/bar/.hidden/baz/not-hidden.txt']; @@ -162,11 +159,6 @@ public function testIfNegatedAndCullsExactMatches(): void ); } - /** - * @covers ::handle - * @covers ::setFilesystem - * @covers :: - */ public function testIfCorrectFilesAreBeingYielded(): void { $isHidden = m::mock(IsHidden::class);