mirror of
https://github.com/mrclay/minify.git
synced 2025-08-15 10:34:02 +02:00
fix namespaced _gzdecode
This commit is contained in:
@@ -108,7 +108,7 @@ class HTTPEncoderTest extends TestCase
|
|||||||
|
|
||||||
$encodingTests = array(
|
$encodingTests = array(
|
||||||
array('method' => 'deflate', 'inv' => 'gzinflate', 'exp' => 32268),
|
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),
|
array('method' => 'compress', 'inv' => 'gzuncompress', 'exp' => 32325),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ class HTTPEncoderTest extends TestCase
|
|||||||
$ret = $this->countBytes($e->getContent());
|
$ret = $this->countBytes($e->getContent());
|
||||||
|
|
||||||
// test uncompression
|
// test uncompression
|
||||||
$roundTrip = @call_user_func($test['inv'], $e->getContent());
|
$roundTrip = call_user_func($test['inv'], $e->getContent());
|
||||||
$desc = "{$test['method']} : uncompress possible";
|
$desc = "{$test['method']} : uncompress possible";
|
||||||
$this->assertSame($variedContent, $roundTrip, $desc);
|
$this->assertSame($variedContent, $roundTrip, $desc);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user