mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Skipping response compression test when running in web tester
This commit is contained in:
parent
95bc6a7bba
commit
754c0776f8
1 changed files with 1 additions and 1 deletions
|
@ -263,6 +263,7 @@ class CakeResponseTestCase extends CakeTestCase {
|
|||
*
|
||||
*/
|
||||
public function testCompress() {
|
||||
$this->skipIf(php_sapi_name() !== 'cli', 'The response compression can only be tested in cli');
|
||||
$response = new CakeResponse();
|
||||
if (ini_get("zlib.output_compression") === '1' || !extension_loaded("zlib")) {
|
||||
$this->assertFalse($response->compress());
|
||||
|
@ -277,6 +278,5 @@ class CakeResponseTestCase extends CakeTestCase {
|
|||
$result = $response->compress();
|
||||
$this->assertTrue($result);
|
||||
$this->assertTrue(in_array('ob_gzhandler', ob_list_handlers()));
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue