diff --git a/src/HttpAssert.php b/src/HttpAssert.php index a1e5c03..6112874 100644 --- a/src/HttpAssert.php +++ b/src/HttpAssert.php @@ -78,7 +78,7 @@ public static function assertContent( string $message = '' ): Document { - PHPUnitAssert::assertSame($type, $expected, $message ?: "Expecting content with media type {$expected}."); + PHPUnitAssert::assertSame($expected, $type, $message ?: "Expecting content with media type {$expected}."); PHPUnitAssert::assertNotEmpty($content, $message ?: 'Expecting HTTP body to have content.'); return Document::cast($content);