InterNations\Component\HttpMock\Tests\RequestCollectionFacadeTest::testRequestResponse_InvalidContentType PHP Method

testRequestResponse_InvalidContentType() public method

public testRequestResponse_InvalidContentType ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array
    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);
    }