Skip to content

Commit

Permalink
use ->assert instead of self::assert in phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jun 22, 2022
1 parent ab29d18 commit ae14544
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -38,7 +38,7 @@ public function testShouldNotDecorateHttpClientServicesIfDisabled(array $params)
$container->addCompilerPass(new HttpClientTracingPass());
$container->compile();

self::assertEquals(HttpClient::class, $container->getDefinition('http.client')->getClass());
$this->assertEquals(HttpClient::class, $container->getDefinition('http.client')->getClass());
}

/**
Expand All @@ -63,7 +63,7 @@ public function testShouldDecorateHttpClients(): void
$container->addCompilerPass(new HttpClientTracingPass());
$container->compile();

self::assertEquals(TraceableHttpClient::class, $container->findDefinition('http.client')->getClass());
$this->assertEquals(TraceableHttpClient::class, $container->findDefinition('http.client')->getClass());
}

private static function isHttpClientPackageInstalled(): bool
Expand Down

0 comments on commit ae14544

Please sign in to comment.