diff --git a/src/Server.php b/src/Server.php index 8d6b22b..fa4bee1 100644 --- a/src/Server.php +++ b/src/Server.php @@ -148,7 +148,7 @@ public function onHandShake($request, $response): void $class = $psr7Response->getAttribute(CoreMiddleware::HANDLER_NAME); if (empty($class)) { - $this->logger->warning('WebSocket hande shake failed, because the class does not exists.'); + $this->logger->warning('WebSocket handshake failed, because the class does not exists.'); return; } diff --git a/tests/ContextTest.php b/tests/ContextTest.php index e7ab2c1..d6e49b1 100644 --- a/tests/ContextTest.php +++ b/tests/ContextTest.php @@ -38,7 +38,7 @@ public function testGet() $this->assertEquals(42, Context::get('a')); } - public function testDestory() + public function testDestroy() { Context::set('a', 42); Context::destroy('a');