Skip to content
Permalink
Browse files

Fixed bad namespace

  • Loading branch information...
lorenzo committed Feb 13, 2014
1 parent 8c2e7bc commit ec8f5f9b5356e7f9c80b16c3b12fb8699aa34515
Showing with 6 additions and 6 deletions.
  1. +6 −6 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.');
}
}

0 comments on commit ec8f5f9

Please sign in to comment.
You can’t perform that action at this time.