aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-10 10:30:28 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-10 10:30:28 +0100
commitb8f0e121700d09dffa91c2489ebe0d6a1ee70a22 (patch)
treeb39f7ddab51ae3dfe6ca4baa29efa38e68b8ab17
parent3fd0fcc1ac381d85da0296d3a32611ab5350cd19 (diff)
downloadWebsocket-b8f0e121700d09dffa91c2489ebe0d6a1ee70a22.zip
Websocket-b8f0e121700d09dffa91c2489ebe0d6a1ee70a22.tar.gz
Websocket-b8f0e121700d09dffa91c2489ebe0d6a1ee70a22.tar.bz2
chore(php) Update to PHP 7.
-rw-r--r--Test/Integration/Protocol/Rfc6455.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/Test/Integration/Protocol/Rfc6455.php b/Test/Integration/Protocol/Rfc6455.php
index dda4904..b4fbcc3 100644
--- a/Test/Integration/Protocol/Rfc6455.php
+++ b/Test/Integration/Protocol/Rfc6455.php
@@ -47,8 +47,6 @@ use Hoa\Websocket;
* Class \Hoa\Websocket\Test\Integration\Protocol\Rfc6455.
*
* Test suite of the RFC6455 protocol.
- *
- * @license New BSD License
*/
class Rfc6455 extends Test\Integration\Suite
{
@@ -59,7 +57,7 @@ class Rfc6455 extends Test\Integration\Suite
$server = new Websocket\Server(new Socket\Server('ws://127.0.0.1:1234'));
$server->on(
'ping',
- function (Event\Bucket $bucket) use (&$numberOfTestsToCompute): void {
+ function (Event\Bucket $bucket) use (&$numberOfTestsToCompute) {
$bucket->getSource()->close();
if ('skip' === substr($bucket->getData()['message'], 0, 4)) {
@@ -73,7 +71,7 @@ class Rfc6455 extends Test\Integration\Suite
);
$server->on(
'message',
- function (Event\Bucket $bucket) use (&$numberOfTestsToCompute): void {
+ function (Event\Bucket $bucket) use (&$numberOfTestsToCompute) {
$source = $bucket->getSource();
$message = $bucket->getData()['message'];
$source->send($message);
@@ -91,7 +89,7 @@ class Rfc6455 extends Test\Integration\Suite
);
$server->on(
'binary-message',
- function (Event\Bucket $bucket) use (&$numberOfTestsToCompute): void {
+ function (Event\Bucket $bucket) use (&$numberOfTestsToCompute) {
$source = $bucket->getSource();
$message = $bucket->getData()['message'];
$source->send(
@@ -586,8 +584,6 @@ class Rfc6455 extends Test\Integration\Suite
* Class \Hoa\Websocket\Test\Integration\Protocol\StopServerException.
*
* An exception that is thrown to stop the server and exits gently.
- *
- * @license New BSD License
*/
class StopServerException extends \RuntimeException
{