From ae47db8d8d73120bad0fc18731b549e3ab6f69b3 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Sat, 13 Apr 2024 14:10:58 -0400 Subject: [PATCH] Fixed gzip test on windows --- tests/ResponseTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index 443ff89..a163e7e 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -282,7 +282,8 @@ class ResponseTest extends TestCase ob_start(); $response->send(); $gzip_body = ob_get_clean(); - $this->assertEquals('H4sIAAAAAAAAAytJLS4BAAx+f9gEAAAA', base64_encode($gzip_body)); + $expected = PHP_OS === 'WINNT' ? 'H4sIAAAAAAAACitJLS4BAAx+f9gEAAAA' : 'H4sIAAAAAAAAAytJLS4BAAx+f9gEAAAA'; + $this->assertEquals($expected, base64_encode($gzip_body)); $this->assertEquals(strlen(gzencode('test')), strlen($gzip_body)); }