Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Dec 10, 2020
1 parent 6225be4 commit 5ecef47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ProfilerTest.php
Expand Up @@ -140,7 +140,7 @@ public function testProfileEndWithoutBegin(): void

$this->expectException(\RuntimeException::class);
$this->expectErrorMessage(
'Unexpected ' . Profiler::class . '::end() call for category "application" token "test". A matching begin() is not found.'
'Unexpected ' . Profiler::class . '::end() call for category "application" token "test". A matching begin() was not found.'
);
$profiler->end('test');
}
Expand All @@ -149,7 +149,7 @@ public function testWrongTarget(): void
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(
'Target should be \Yiisoft\Profiler\Target instance. "' . \stdClass::class . '" given.'
'Target should be an instance of \Yiisoft\Profiler\Target, "' . \stdClass::class . '" given.'
);
$profiler = new Profiler($this->logger, [new \stdClass()]);
}
Expand Down

0 comments on commit 5ecef47

Please sign in to comment.