mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 00:54:35 +02:00
use autoloader in tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../min/lib'));
|
require dirname(__FILE__) . '/../../min/lib/Minify/Loader.php';
|
||||||
require 'HTTP/ConditionalGet.php';
|
|
||||||
|
|
||||||
// emulate regularly updating document
|
// emulate regularly updating document
|
||||||
$every = 20;
|
$every = 20;
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../min/lib'));
|
require dirname(__FILE__) . '/../../min/lib/Minify/Loader.php';
|
||||||
require 'HTTP/ConditionalGet.php';
|
|
||||||
|
|
||||||
// generate content first (not ideal)
|
// generate content first (not ideal)
|
||||||
// emulate regularly updating document
|
// emulate regularly updating document
|
||||||
|
@@ -1,13 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../min/lib'));
|
require dirname(__FILE__) . '/../../min/lib/Minify/Loader.php';
|
||||||
require 'HTTP/ConditionalGet.php';
|
|
||||||
|
|
||||||
// emulate regularly updating document
|
// emulate regularly updating document
|
||||||
$every = 20;
|
$every = 20;
|
||||||
$lastModified = round(time()/$every)*$every - $every;
|
$lastModified = round(time()/$every)*$every - $every;
|
||||||
|
|
||||||
require 'HTTP/Encoder.php';
|
|
||||||
list($enc,) = HTTP_Encoder::getAcceptedEncoding();
|
list($enc,) = HTTP_Encoder::getAcceptedEncoding();
|
||||||
|
|
||||||
$cg = new HTTP_ConditionalGet(array(
|
$cg = new HTTP_ConditionalGet(array(
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../min/lib'));
|
require dirname(__FILE__) . '/../../min/lib/Minify/Loader.php';
|
||||||
require 'HTTP/ConditionalGet.php';
|
|
||||||
|
|
||||||
// far expires
|
// far expires
|
||||||
$cg = new HTTP_ConditionalGet(array(
|
$cg = new HTTP_ConditionalGet(array(
|
||||||
|
Reference in New Issue
Block a user