Skip to content

Commit

Permalink
Fixed bad namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 13, 2014
1 parent 8c2e7bc commit ec8f5f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/TestCase/Network/SocketTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testSocketConnection() {
$this->Socket = new Socket($config); $this->Socket = new Socket($config);
$this->Socket->connect(); $this->Socket->connect();
$this->assertTrue($this->Socket->connected); $this->assertTrue($this->Socket->connected);
} catch (Error\SocketException $e) { } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.'); $this->markTestSkipped('Cannot test network, skipping.');
} }
} }
Expand All @@ -117,7 +117,7 @@ public static function invalidConnections() {
* testInvalidConnection method * testInvalidConnection method
* *
* @dataProvider invalidConnections * @dataProvider invalidConnections
* @expectedException Cake\Error\SocketException * @expectedException Cake\\Cake\Error\SocketException
* return void * return void
*/ */
public function testInvalidConnection($data) { public function testInvalidConnection($data) {
Expand Down Expand Up @@ -145,7 +145,7 @@ public function testSocketHost() {
$this->assertEquals(gethostbyaddr('127.0.0.1'), $this->Socket->host()); $this->assertEquals(gethostbyaddr('127.0.0.1'), $this->Socket->host());
$this->assertEquals(null, $this->Socket->lastError()); $this->assertEquals(null, $this->Socket->lastError());
$this->assertTrue(in_array('127.0.0.1', $this->Socket->addresses())); $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.'); $this->markTestSkipped('Cannot test network, skipping.');
} }
} }
Expand Down Expand Up @@ -180,7 +180,7 @@ public function testSocketReading() {
$this->assertTrue($this->Socket->connect()); $this->assertTrue($this->Socket->connect());
$this->assertEquals(null, $this->Socket->read(26)); $this->assertEquals(null, $this->Socket->read(26));
$this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError()); $this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError());
} catch (Error\SocketException $e) { } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.'); $this->markTestSkipped('Cannot test network, skipping.');
} }
} }
Expand All @@ -200,7 +200,7 @@ public function testTimeOutConnection() {
$this->Socket = new Socket($config); $this->Socket = new Socket($config);
$this->assertFalse($this->Socket->read(1024 * 1024)); $this->assertFalse($this->Socket->read(1024 * 1024));
$this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError()); $this->assertEquals('2: ' . 'Connection timed out', $this->Socket->lastError());
} catch (Error\SocketException $e) { } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.'); $this->markTestSkipped('Cannot test network, skipping.');
} }
} }
Expand Down Expand Up @@ -277,7 +277,7 @@ protected function _connectSocketToSslTls() {
$this->Socket = new Socket($configSslTls); $this->Socket = new Socket($configSslTls);
try { try {
$this->Socket->connect(); $this->Socket->connect();
} catch (Error\SocketException $e) { } catch (\Cake\Error\SocketException $e) {
$this->markTestSkipped('Cannot test network, skipping.'); $this->markTestSkipped('Cannot test network, skipping.');
} }
} }
Expand Down

0 comments on commit ec8f5f9

Please sign in to comment.