예제 #1
0
 public function testConstruct_withArgs_createsSocketWithArgs()
 {
     $this->_socketCreateSuccess();
     $hostName = 'testHostName';
     $port = 666;
     $socket = new Socket($hostName, $port);
     $this->assertEquals($hostName, $socket->getHostname());
     $this->assertEquals($port, $socket->getPort());
     $this->assertFalse($socket->isConnected());
     $this->assertNotNull($socket->getRaw());
 }