/** @expectedException \Interop\Async\Loop\InvalidWatcherException */ function testExceptionOnReferenceNonexistentWatcher() { $this->loop->reference("nonexistentWatcher"); }