public function testRequestResponse_InvalidContentType($method, $path, array $args = [], $httpMethod = 'get') { $this->mockClient($path, $this->createResponseWithInvalidContentType(), $httpMethod); $this->setExpectedException('UnexpectedValueException', 'Expected content type "text/plain" from "' . $path . '", got "text/html"'); call_user_func_array([$this->facade, $method], $args); }