From be40d4f9b25bd0657fde33c5465a511842de8866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 22 Dec 2017 18:18:07 +0200 Subject: [PATCH] fix namespaced _gzdecode --- tests/HTTPEncoderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/HTTPEncoderTest.php b/tests/HTTPEncoderTest.php index 66e993c..ea150fc 100644 --- a/tests/HTTPEncoderTest.php +++ b/tests/HTTPEncoderTest.php @@ -108,7 +108,7 @@ class HTTPEncoderTest extends TestCase $encodingTests = array( array('method' => 'deflate', 'inv' => 'gzinflate', 'exp' => 32268), - array('method' => 'gzip', 'inv' => '_gzdecode', 'exp' => 32286), + array('method' => 'gzip', 'inv' => __NAMESPACE__ . '\\_gzdecode', 'exp' => 32286), array('method' => 'compress', 'inv' => 'gzuncompress', 'exp' => 32325), ); @@ -121,7 +121,7 @@ class HTTPEncoderTest extends TestCase $ret = $this->countBytes($e->getContent()); // test uncompression - $roundTrip = @call_user_func($test['inv'], $e->getContent()); + $roundTrip = call_user_func($test['inv'], $e->getContent()); $desc = "{$test['method']} : uncompress possible"; $this->assertSame($variedContent, $roundTrip, $desc);