Beispiel #1
0
<?php

require "compressor.php";
$c = new Compressor();
$c->keep_line_breaks = false;
$c->comment = array("See https://github.com/fbianco/MimingGallery for uncompressed code.");
$c->load(file_get_contents("gallery.ajax.php"));
echo $c->run() . '?>';
Beispiel #2
0
 /**
  * Tests Compressor::compressFile
  *
  * @expectedException \phpbu\App\Exception
  */
 public function testFailEarlyCompress()
 {
     $path = realpath(__DIR__ . '/../../../_files/bin');
     $gzip = new Compressor('gzip', $path);
     $gzip->run();
 }