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