1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-14 18:14:03 +02:00

fix namespaced _gzdecode

This commit is contained in:
Elan Ruusamäe
2017-12-22 18:18:07 +02:00
parent 9ee5fb7701
commit be40d4f9b2

View File

@@ -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);