1 | <?php |
||
23 | class CompressionTest extends \PHPUnit_Framework_TestCase |
||
24 | { |
||
25 | public function testGetValidCompressionAlgorithm() |
||
35 | |||
36 | public function testGetInvalidCompressionAlgorithm() |
||
46 | |||
47 | public function testDeflate() |
||
57 | |||
58 | public function testGZip() |
||
68 | |||
69 | public function testZLib() |
||
79 | |||
80 | /** |
||
81 | * @expectedException \InvalidArgumentException |
||
82 | * @expectedExceptionMessage The compression level can be given as 0 for no compression up to 9 for maximum compression. If -1 given, the default compression level will be the default compression level of the zlib library. |
||
83 | */ |
||
84 | public function testDeflateInvalidCompressionLevel() |
||
88 | |||
89 | /** |
||
90 | * @expectedException \InvalidArgumentException |
||
91 | * @expectedExceptionMessage The compression level can be given as 0 for no compression up to 9 for maximum compression. If -1 given, the default compression level will be the default compression level of the zlib library. |
||
92 | */ |
||
93 | public function testGZipInvalidCompressionLevel() |
||
97 | |||
98 | /** |
||
99 | * @expectedException \InvalidArgumentException |
||
100 | * @expectedExceptionMessage The compression level can be given as 0 for no compression up to 9 for maximum compression. If -1 given, the default compression level will be the default compression level of the zlib library. |
||
101 | */ |
||
102 | public function testZLibInvalidCompressionLevel() |
||
106 | } |
||
107 |