Steve Clay
6166d3b785
Skip some tests on CI
2024-01-04 01:19:42 -05:00
Steve Clay
bc1ffdc5fc
Test fixes
2024-01-04 01:00:44 -05:00
Christoph Rönsch
455084b284
Minify_Cache_APCu replaces APC
2022-10-01 22:23:52 +02:00
Elan Ruusamäe
b314554a0f
Remove php 7.4 block for LessSourceTest
2021-03-11 17:54:46 +02:00
Elan Ruusamäe
ad0fb95556
Disable less tests on php 7.4+
2021-03-11 14:04:45 +02:00
Elan Ruusamäe
8382fb85d8
Disable less tests on php 7.4+
2020-12-01 16:16:43 +02:00
Elan Ruusamäe
e3fe3001c3
Avoid calling get_magic_quotes_gpc() in tests for php >= 5.4
2020-07-12 10:33:58 +03:00
Elan Ruusamäe
b31855f6b8
Apply php-cs-fixer fixers
...
- braces
- function_declaration
- lowercase_keywords
- method_argument_space
- no_spaces_inside_parenthesis
- no_trailing_whitespace
- no_trailing_whitespace_in_comment
- single_blank_line_at_eof
2020-04-03 10:47:27 +03:00
Andrew Welch
0f607be23a
Exclude SSI Comments ( #670 )
...
* Exclude SSI comments
Exclude Nginx & Apache Server Side Include (SSI) comments from being stripped via minification, the same way IE directives are not stripped.
Both Nginx & Apache SSI directives begin with:
<!—#
So we can just look for the # and don’t strip the comment in that case.
Nginx SSI: http://nginx.org/en/docs/http/ngx_http_ssi_module.html
Apache SSI: https://httpd.apache.org/docs/2.4/howto/ssi.html
* Add tests for Nginx/Apache SSI directives
Co-authored-by: Andrew Welch <andrew@keluli.local >
2020-04-02 22:45:11 +03:00
Elan Ruusamäe
9040437901
Fix unit test for bd7d1077
2019-10-01 11:40:04 +03:00
Elan Ruusamäe
bb7fc74330
tests: rename dataproviders not to be picked up as tests
2018-01-05 13:13:20 +02:00
Elan Ruusamäe
eb4c0f6541
leafo/scssphp: allow 0.3/0.6/0.7
...
tests/ScssSourceTest.php passed with all versions
refs:
- commit ddf3a4e57f
- PR #562
2018-01-05 13:03:30 +02:00
Elan Ruusamäe
be40d4f9b2
fix namespaced _gzdecode
2017-12-22 18:18:07 +02:00
Elan Ruusamäe
9ee5fb7701
moved tests to minify\test namespace
2017-12-22 18:05:33 +02:00
Elan Ruusamäe
7d60fb9d0f
use Minify\Test namespace for tests
2017-12-22 17:58:01 +02:00
Elan Ruusamäe
6236431c8f
use forward-compatible phpunit testcase
2017-12-22 17:54:17 +02:00
Elan Ruusamäe
93a1edd34b
closure: use 20161024 version
...
this is version the example .min files were created
2017-06-08 22:29:56 +03:00
Elan Ruusamäe
a6531d3481
closure: use specific version
...
using latest may break our tests as minified result may differ
2017-06-08 22:02:16 +03:00
Steve Clay
ed239fbb8b
Update CSSmin to v4
2017-06-08 20:38:43 +03:00
Steve Clay
e904f2e1ae
ImportProcessor can handle URIs with query strings
...
Fixes #479
2017-04-03 16:50:53 -04:00
Steve Clay
a07991c052
Merge pull request #563 from mrclay/561_empty_url
...
URI rewriter passes through empty URLs
2017-01-18 21:01:09 -05:00
Steve Clay
ddf3a4e57f
Require later SCSS PHP for tests
...
No longer test PHP 5.3
2017-01-18 20:55:49 -05:00
Steve Clay
12b9096b23
URI rewriter passes through empty URLs
...
Fixes #561
2017-01-18 18:48:24 -05:00
Elan Ruusamäe
005dc26e22
tests: skip rather than fail if nailgun.jar is missing
2016-12-06 17:11:23 +02:00
Elan Ruusamäe
ed209f9a84
remove var_dump debug from test output
2016-12-06 17:11:23 +02:00
Elan Ruusamäe
8fe915f486
test $jscomp polyfill output
2016-12-06 17:11:04 +02:00
Elan Ruusamäe
6a330d9091
pass any option to closure compiler
2016-12-06 16:59:36 +02:00
Elan Ruusamäe
8949df33dd
add testcase for js minify that produces $jscomp polyfills
...
with recent closure compiler default input language has changed from ES3 to ES6 produces $jscomp polyfills
2016-12-06 14:46:46 +02:00
Elan Ruusamäe
2bd69ca5b1
test scssphp functionality
...
tested cache dependencies
2016-10-13 12:21:09 +03:00
Steve Clay
2045731d60
Improve Minify_Lines algorithm and add tests
...
Fixes #531
Fixes #534
2016-05-19 15:14:27 -04:00
Steve Clay
865946c0ed
Merge branch '2.x' into merge2x
...
Conflicts:
.gitignore
HISTORY.txt
README.md
config.php
docs/CookBook.wiki.md
docs/CustomSource.wiki.md
lib/Minify/CSS/UriRewriter.php
min/lib/DooDigestAuth.php
min/lib/FirePHP.php
min/lib/JSMinPlus.php
min/lib/Minify/Controller/Base.php
min/lib/Minify/Loader.php
min/lib/Minify/Logger.php
2016-05-12 11:03:16 -04:00
Steve Clay
4710509c68
Large restructuring
...
Moves all dependency building into App
bootstrap.php returns an App instance
The app loads config files as necessary
Moves logging to Monolog
Moves HTTP digest auth to packagist component
Rely on sys_get_temp_dir
Env hosts $_POST and allows defaults when reading
HTML helper uses the App and can handle less files
Source factory assumes strings are filenames
Fixes JsClosureCompilerTest::test6 (API now handles ES5 by default)
Exclude JsClosureCompilerTest due to API limitations
config.php can now return a Minify\Config object
Variables set in config.php are now moved to a `Minify\Config` object,
allowing better static analysis.
The `zlib.output_compression` set is moved into `Minify::serve`.
2016-03-10 18:44:23 -05:00
Elan Ruusamäe
c387014e27
add test for #500
2016-01-20 13:21:11 +02:00
Elan Ruusamäe
f5c12ad0f4
add test for closure compiler tags validation
...
https://code.google.com/p/closure-compiler/issues/detail?id=513
2015-12-16 22:43:32 +02:00
Elan Ruusamäe
8d1f4ad765
Merge pull request #491 from mrclay/phpunit_conversion
...
PHPUnit conversion
2015-11-22 22:02:01 +02:00
Steve Clay
316a109032
Port last of min_unit_tests, remove references to it, add composer script
2015-11-22 13:57:53 -05:00
Steve Clay
9370e96fd4
port MinifyTest to phpunit, move test_environment to server-info.php
2015-11-22 13:57:52 -05:00
Steve Clay
ae4b49fcee
port MinifyLinesTest to phpunit
2015-11-22 13:57:52 -05:00
Steve Clay
8a35a8d9ca
Add explicit dependency on PHPUnit 5
2015-11-22 13:57:52 -05:00
Elan Ruusamäe
6c95daf3cf
formatting fixes
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
8816e270e6
port HTTPConditionalGetTest
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
3a9687ad4e
port MinifyCSSUriRewriterTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
6e7767aa3e
port MinifyHTMLTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
16b8296c34
port MinifyHTMLHelperTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
fa9f5db843
port MinifyCacheWinCacheTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
5b82a781dc
port MinifyCacheAPCTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
5d46afbc72
port MinifyCacheZendPlatformTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
3cb97e2e47
port MinifyCacheMemcacheTest to phpunit
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
f71dd4c79f
move common cache test assertion to TestCase
2015-11-22 13:56:59 -05:00
Elan Ruusamäe
554542401f
port MinifyCacheFileTest to phpunit
2015-11-22 13:56:59 -05:00