Esempio n. 1
0
 /**
  * @group StreamReceive
  */
 public function testClientTimingOutStream()
 {
     $this->assertSame('aaa', $this->client->receive(3));
     $this->client->setTimeout(2);
     try {
         $this->client->receiveStream(30);
         $this->fail('Second receiving had to fail.');
     } catch (SocketException $e) {
         $this->assertSame(5, $e->getCode(), 'Improper exception code.');
     }
 }