Skip to content

Commit

Permalink
update phpunit syntax assertMatchesRegularExpression
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Oct 2, 2021
1 parent b349cbb commit c9ce2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Listener/ToolbarListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function testOnCollected($htmlBody, $injected)
$listener->onCollected($profilerEvent);

if ($injected) {
$this->assertRegExp('/script/', $response->getBody());
$this->assertMatchesRegularExpression('/script/', $response->getBody());
}
}
}

0 comments on commit c9ce2a4

Please sign in to comment.