Skip to content

Commit

Permalink
Merge pull request #532 from lucasnetau/patch-1
Browse files Browse the repository at this point in the history
Fix expected error code in tests when ext-sockets is not enabled
  • Loading branch information
WyriHaximus authored Aug 27, 2024
2 parents cd24a5b + 905eabf commit fc09a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FunctionalBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public function testGetRequestWithResponseBufferExceededRejects()

$this->expectException(\OverflowException::class);
$this->expectExceptionMessage('Response body size of 5 bytes exceeds maximum of 4 bytes');
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0);
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90);
await($promise);
}

Expand All @@ -383,7 +383,7 @@ public function testGetRequestWithResponseBufferExceededDuringStreamingRejects()

$this->expectException(\OverflowException::class);
$this->expectExceptionMessage('Response body size exceeds maximum of 4 bytes');
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0);
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90);
await($promise);
}

Expand Down

0 comments on commit fc09a64

Please sign in to comment.