Skip to content

Commit a91d733

Browse files
committed
fixed unittests
1 parent 89e5b90 commit a91d733

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/packet/ControlPacket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function get()
161161
* @param $byte1
162162
* @return $byte1 unmodified
163163
*/
164-
protected static function addReservedBitsToFixedHeaderControlPacketType($byte1)
164+
protected function addReservedBitsToFixedHeaderControlPacketType($byte1)
165165
{
166166
return $byte1;
167167
}
@@ -171,7 +171,7 @@ protected static function addReservedBitsToFixedHeaderControlPacketType($byte1)
171171
* @param string $rawInput
172172
* @return string
173173
*/
174-
protected function getPayloadLengthPrefixFieldInRawInput($startIndex, $rawInput)
174+
protected static function getPayloadLengthPrefixFieldInRawInput($startIndex, $rawInput)
175175
{
176176
$headerLength = 2;
177177
$header = substr($rawInput, $startIndex, $headerLength);

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
2+
error_reporting(E_ALL);
3+
24
// change the following paths if necessary
35
require_once(dirname(dirname(__FILE__)) . "/vendor/autoload.php");

0 commit comments

Comments
 (0)