From a8e1f3dfa785d64dd706c4edfc1ada033a944f99 Mon Sep 17 00:00:00 2001 From: Thijs Van der Schaeghe Date: Tue, 15 Oct 2019 15:50:34 +0200 Subject: [PATCH] PHPUnitAssert::assertSame 's first paramter is the expected value, assertContent should thus provide the expected value as first parameter. --- src/HttpAssert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);