Changeset 42343 for trunk/tests/phpunit/tests/ajax/Compression.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Compression.php
r41870 r42343 57 57 public function test_gzdeflate() { 58 58 59 if ( ! function_exists( 'gzdeflate' ) ) {59 if ( ! function_exists( 'gzdeflate' ) ) { 60 60 $this->fail( 'gzdeflate function not available' ); 61 61 } … … 65 65 66 66 // Set up a default request 67 $_GET['test'] = 2;67 $_GET['test'] = 2; 68 68 $_SERVER['HTTP_ACCEPT_ENCODING'] = 'deflate'; 69 69 … … 84 84 public function test_gzencode() { 85 85 86 if ( ! function_exists('gzencode') ) {86 if ( ! function_exists( 'gzencode' ) ) { 87 87 $this->fail( 'gzencode function not available' ); 88 88 } … … 92 92 93 93 // Set up a default request 94 $_GET['test'] = 2;94 $_GET['test'] = 2; 95 95 $_SERVER['HTTP_ACCEPT_ENCODING'] = 'gzip'; 96 96 … … 115 115 116 116 // Set up a default request 117 $_GET['test'] = 2;117 $_GET['test'] = 2; 118 118 $_SERVER['HTTP_ACCEPT_ENCODING'] = 'unknown'; 119 119 … … 201 201 /** 202 202 * Undo gzencode. This is ugly, but there's no stock gzdecode() function. 203 * 203 204 * @param string $encoded_data 204 205 * @return string
Note: See TracChangeset
for help on using the changeset viewer.