My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TestingMinify  
How to test Minify on your web server
Phase-Implementation
Updated Mar 15, 2012 by mrclay....@gmail.com

Unit Testing

0. If you haven't already, install Minify using the UserGuide.

1. Copy the "min_unit_tests" directory directly into your DOCUMENT_ROOT.

2. Browse to http://example.com/min_unit_tests/test_all.php

You should see a list of "PASS"es. You can run the individual test PHP files in http://example.com/min_unit_tests/ for more verbose output.

Common Problems

!WARN: environment : Local HTTP request failed. Testing cannot continue.

test_environment.php makes a few local HTTP requests to sniff for zlib.output_compression and other auto-encoding behavior, which may break Minify's output. This warning will appear if allow_url_fopen is disabled in php.ini, but does not necessarily mean there is a problem.

If Minify seems to work fine, ignore the warning. If Minify produces garbled output, enable allow_url_fopen in php.ini and re-run the tests. The tests may be able to tell you if PHP or your server is automatically encoding output.

Unless you need it in other scripts, disable allow_url_fopen once the issue is resolved. Minify does not need it.

Comment by b...@popler.tv, Dec 18, 2010

sss sa ds d d

s
d ewd

Comment by sptava...@gmail.com, Apr 7, 2012

uu

Comment by luanexpl...@gmail.com, Apr 22, 2012

leminpark

Comment by wecodem...@gmail.com, Apr 24, 2012

Works perfect. Tested inside a jQuery mobile App. .htaccess rewritten subdir install from http://example.com/subdir/app/index.php > http://subdomain.example.com/. Unit test called from http://subdomain.example.com/lib/minify/min_unit_tests/test_all.php. PASS for all test.


Sign in to add a comment
Powered by Google Project Hosting