17 Commits

Author SHA1 Message Date
Matthias Mullie
099f5ec75d Fix passing array as argument to add
There were some issues with the interplay between an array
being passed, and the method being overloaded. Individually,
both would work, but when they're combined, it would fail.
2016-10-13 13:45:01 +02:00
Matthias Mullie
2552412426 Also don't fork if it's simply not available 2016-06-09 19:01:25 +02:00
Matthias Mullie
8f76616c40 Don't run fork test on HHVM 2016-06-09 18:05:40 +02:00
Matthias Mullie
75eff20d29 Suppress is_file errors, which may be caused by open_basedir
Fixes issue #111
2016-06-09 17:53:59 +02:00
Matthias Mullie
3518f595e5 Restore original Exception class
I admit, having just this 1 Exception class in the root of the
project was a bad idea...
But now I can't take it away without breaking backwards compatibility:
people could be catching errors of this class.
So all new Exception classes have to inherit from this old one (it's
not worth breaking BC over, imo)
Also renamed the new ones to be "Exceptions" (plural), to avoid
confusing that namespace with the original exception class name.
2016-02-17 11:43:01 +01:00
Matthias Mullie
b77673f350 php-cs-fixer fixes 2016-02-17 09:58:12 +01:00
Gino Pane
4049b6eed3 Test and prevent file import loops.
Issue: https://github.com/matthiasmullie/minify/issues/96

Updates:
- Added css files for testing and a new test-case;
- created new exception types and grouped them into separated directory;
- reuse some parts of the code.
2016-02-15 22:56:01 +03:00
Gino Pane
ddfe262a62 Tests for filesystem operations.
- Split Minify::save() to easily testable methods;
- Add tests.
2016-02-09 15:53:15 +03:00
Matthias Mullie
72c862d141 Improve check for invalid (too long) paths (which are likely content)
Fixes #90
2016-01-04 14:22:38 -08:00
Matthias Mullie
bdbb91277b php-cs-fixer 2015-09-05 21:49:18 +02:00
Matthias Mullie
c1b61592f4 Update cache repo location 2015-09-04 11:02:35 +02:00
Matthias Mullie
49a2aca294 Allow minified data to be written to cache 2015-05-05 16:43:08 +02:00
Matthias Mullie
30a459229f Add gzip method
Fixed #47
2015-04-07 15:47:36 +02:00
Matthias Mullie
d34af3d323 php-cs-fixer fixes 2015-03-06 13:17:33 +01:00
Matthias Mullie
434d0125e6 Fix coding standard violations
Thanks, php-cs-fixer
2015-02-12 13:34:50 +01:00
Matthias Mullie
7b5abfe181 Seperate JS files by ; & more thorough checking for ++ & -- 2014-10-14 11:30:23 +02:00
Matthias Mullie
07c1bd1e3a Test common methods
Meanwhile also fix appending of multiple JS sources:
they should be split by line feed.
2014-10-12 22:27:53 +02:00