예제 #1
0
 /**
  * @test
  */
 public function gzip()
 {
     $path = __DIR__ . '/sample/source/script1.js';
     $content = file_get_contents($path);
     $savePath = __DIR__ . '/sample/target/script1.js.gz';
     $minifier = new Minify\JS($path);
     $minifier->gzip($savePath, 9);
     $this->assertEquals(file_get_contents($savePath), gzencode($content, 9, FORCE_GZIP));
 }