public function testConstructorRaisesExceptionForInvalidMethod($method) { $this->setExpectedException('InvalidArgumentException', 'Unsupported HTTP method'); new Request(null, $method); }