コード例 #1
0
ファイル: FactoryTest.php プロジェクト: clue/socket-react
 /**
  * creating a TCP socket fails because it is NOT a datagram socket
  */
 public function testCreateServerFailTcp()
 {
     $promise = $this->factory->createServer('tcp://127.0.0.1:0');
     $this->assertInstanceOf('React\\Promise\\PromiseInterface', $promise);
     $promise->then($this->expectCallableNever(), $this->expectCallableOnceParameter('Exception'));
     $this->loop->tick();
 }