Skip to content

Commit

Permalink
Fix assertHttp()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 5, 2024
1 parent e9b2890 commit 8d2ba32
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/php/websocket/unittest/HandshakeTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ private function fixture($listener= null) {
* @throws unittest.AssertionFailedError
*/
private function assertHttp($expected, $out) {
if (!preg_match('#^'.$expected.'$#m', $out)) {
$this->fail('=~', $out, $expected);
}
Assert::matches('#^'.$expected.'$#m', $out);
}

#[Test]
Expand Down

0 comments on commit 8d2ba32

Please sign in to comment.