Skip to content

Commit

Permalink
Update test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Dec 20, 2022
1 parent f07b1bc commit 901c875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests/ClassInitTests/TrackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function testEventIdIsProperlyGenerated()
->method('addEvent')
->with($this->callback(function ($a) use($test) {
$test->assertArrayHasKey('eid', $a);
$test->assertRegExp('/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/', $a['eid']);
$test->assertMatchesRegularExpression('/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/', $a['eid']);

return true;
}));
Expand Down

0 comments on commit 901c875

Please sign in to comment.