Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Sep 15, 2024
1 parent b259e7a commit e50ccad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
9 changes: 5 additions & 4 deletions tests/integration/FindOnSamplePhpdocLayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
}
9 changes: 5 additions & 4 deletions tests/integration/FindOnSamplePhpdocLayoutUsingGlobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
}
8 changes: 0 additions & 8 deletions tests/unit/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ public function tearDown(): void
m::close();
}

/**
* @covers ::getMethod
*/
public function testIfNotHiddenLetsSubpathsThrough(): void
{
$files = ['foo/bar/.hidden/baz/not-hidden.txt'];
Expand Down Expand Up @@ -162,11 +159,6 @@ public function testIfNegatedAndCullsExactMatches(): void
);
}

/**
* @covers ::handle
* @covers ::setFilesystem
* @covers ::<private>
*/
public function testIfCorrectFilesAreBeingYielded(): void
{
$isHidden = m::mock(IsHidden::class);
Expand Down

0 comments on commit e50ccad

Please sign in to comment.