Skip to content

Commit

Permalink
Used static self to access PHPUnit's assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Dec 10, 2020
1 parent 13883e3 commit f15d689
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/Collection/PathCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function setUp(): void
*/
public function pathExistsReturnsExpectedValue(array $path, bool $expected): void
{
$this->assertEquals($expected, $this->collection->pathExists($path));
self::assertEquals($expected, $this->collection->pathExists($path));
}

public function providePaths(): iterable
Expand All @@ -54,7 +54,7 @@ public function providePaths(): iterable
*/
public function getValueInPathReturnsExpectedValue(array $path, $expected): void
{
$this->assertEquals($expected, $this->collection->getValueInPath($path));
self::assertEquals($expected, $this->collection->getValueInPath($path));
}

public function providePathsWithValue(): iterable
Expand Down
4 changes: 2 additions & 2 deletions test/ConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function setUp(): void
public function configIsReturned(): void
{
$config = ($this->configProvider)();
$this->assertArrayHasKey('dependencies', $config);
$this->assertEquals([
self::assertArrayHasKey('dependencies', $config);
self::assertEquals([
'abstract_factories' => [
DottedAccessConfigAbstractFactory::class,
],
Expand Down
4 changes: 2 additions & 2 deletions test/Factory/DottedAccessConfigAbstractFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function setUp(): void
*/
public function canCreateOnlyServicesWithDot(string $serviceName, bool $canCreate): void
{
$this->assertEquals($canCreate, $this->factory->canCreate(new ServiceManager(), $serviceName));
self::assertEquals($canCreate, $this->factory->canCreate(new ServiceManager(), $serviceName));
}

public function provideDotNames(): iterable
Expand Down Expand Up @@ -64,7 +64,7 @@ public function dottedNotationIsRecursivelyResolvedUntilLastValueIsFoundAndRetur
],
]]), $serviceName);

$this->assertEquals($expected, $result);
self::assertEquals($expected, $result);
}

public function provideDotValues(): iterable
Expand Down

0 comments on commit f15d689

Please sign in to comment.