diff --git a/tests/TestCase/Network/SocketTest.php b/tests/TestCase/Network/SocketTest.php index 1798e2d53b7..67fef360c55 100644 --- a/tests/TestCase/Network/SocketTest.php +++ b/tests/TestCase/Network/SocketTest.php @@ -159,7 +159,7 @@ public function testSocketWriting() { try { $request = "GET / HTTP/1.1\r\nConnection: close\r\n\r\n"; $this->assertTrue((bool)$this->Socket->write($request)); - } catch (SocketException $e) { + } catch (\Cake\Error\SocketException $e) { $this->markTestSkipped('Cannot test network, skipping.'); } } @@ -237,7 +237,7 @@ public function testReset() { /** * testEncrypt * - * @expectedException Cake\Error\SocketException + * @expectedException \Cake\Error\SocketException * @return void */ public function testEnableCryptoSocketExceptionNoSsl() { @@ -317,7 +317,7 @@ public function testEnableCrypto() { /** * testEnableCryptoExceptionEnableTwice * - * @expectedException Cake\Error\SocketException + * @expectedException \Cake\Error\SocketException * @return void */ public function testEnableCryptoExceptionEnableTwice() { @@ -331,7 +331,7 @@ public function testEnableCryptoExceptionEnableTwice() { /** * testEnableCryptoExceptionDisableTwice * - * @expectedException Cake\Error\SocketException + * @expectedException \Cake\Error\SocketException * @return void */ public function testEnableCryptoExceptionDisableTwice() {