public function testConstructorRaisesExceptionForInvalidStream() { $this->setExpectedException('InvalidArgumentException'); new Request(['TOTALLY INVALID']); }