public function testBlockingCreation() { $stream = new MioStream(fsockopen('127.0.0.1', 8888, $errno = null, $errstr = null), '127.0.0.1:8888'); $stream->setBlocking(1); try { $key = new MioSelectionKey($stream, 0); $this->fail(); } catch (MioBlockingException $e) { $this->pass(); } }