Skip to content

Commit

Permalink
Updates for tests for phpunit 9
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jul 27, 2020
1 parent 9fc94dd commit a4c4073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public function testRequestUriCanBeChanged() : void
->with(self::callback(static function (Request $request) use ($requestUri) {
$serialisedRequest = json_encode($request);

self::assertContains(sprintf('"tag":"path","value":"%s"', $requestUri), $serialisedRequest);
self::assertStringContainsString(sprintf('"tag":"path","value":"%s"', $requestUri), $serialisedRequest);

return true;
}))
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Helper/TimerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function testTimesAreFormatted() : void
$timer = new Timer();
$timer->stop();

self::assertRegExp(self::DATE_FORMAT_VALIDATION_REGEX, $timer->getStart());
self::assertRegExp(self::DATE_FORMAT_VALIDATION_REGEX, $timer->getStop());
self::assertMatchesRegularExpression(self::DATE_FORMAT_VALIDATION_REGEX, $timer->getStart());
self::assertMatchesRegularExpression(self::DATE_FORMAT_VALIDATION_REGEX, $timer->getStop());
}

public function testDurationIsNullIfNotStopped() : void
Expand Down

0 comments on commit a4c4073

Please sign in to comment.