Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bad namespace

  • Loading branch information...
commit ec8f5f9b5356e7f9c80b16c3b12fb8699aa34515 1 parent 8c2e7bc
@lorenzo lorenzo authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/TestCase/Network/SocketTest.php
View
12 tests/TestCase/Network/SocketTest.php
@@ -96,7 +96,7 @@ public function testSocketConnection() {
$this->Socket = new Socket($config);
$this->Socket->connect();
$this->assertTrue($this->Socket->connected);
- } catch (Error\SocketException $e) {
+ } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.');
}
}
@@ -117,7 +117,7 @@ public static function invalidConnections() {
* testInvalidConnection method
*
* @dataProvider invalidConnections
- * @expectedException Cake\Error\SocketException
+ * @expectedException Cake\\Cake\Error\SocketException
* return void
*/
public function testInvalidConnection($data) {
@@ -145,7 +145,7 @@ public function testSocketHost() {
$this->assertEquals(gethostbyaddr('127.0.0.1'), $this->Socket->host());
$this->assertEquals(null, $this->Socket->lastError());
$this->assertTrue(in_array('127.0.0.1', $this->Socket->addresses()));
- } catch (Error\SocketException $e) {
+ } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.');
}
}
@@ -180,7 +180,7 @@ public function testSocketReading() {
$this->assertTrue($this->Socket->connect());
$this->assertEquals(null, $this->Socket->read(26));
$this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError());
- } catch (Error\SocketException $e) {
+ } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.');
}
}
@@ -200,7 +200,7 @@ public function testTimeOutConnection() {
$this->Socket = new Socket($config);
$this->assertFalse($this->Socket->read(1024 * 1024));
$this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError());
- } catch (Error\SocketException $e) {
+ } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.');
}
}
@@ -277,7 +277,7 @@ protected function _connectSocketToSslTls() {
$this->Socket = new Socket($configSslTls);
try {
$this->Socket->connect();
- } catch (Error\SocketException $e) {
+ } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.