File tree 5 files changed +20
-2
lines changed
5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v3
14
+ - name : Test PHP 8.4
15
+ run : make test PHP=8.4
16
+ - name : Test PHP 8.3
17
+ run : make test PHP=8.3
14
18
- name : Test PHP 8.2
15
19
run : make test PHP=8.2
16
20
- name : Test PHP 8.1
Original file line number Diff line number Diff line change 12
12
for VOLUME in $$ (echo " $( VOLUME_BINDS) " | tr " ," " \n" ); do VOLUMES=" $$ VOLUMES -v $$ (pwd)/$$ VOLUME:/var/www/$$ VOLUME" ; done ; \
13
13
VERSION=$$(echo "$(PHP ) -cli" | sed "s/^-//" ) ; \
14
14
test $$(docker images -q matthiasmullie/minify:$$VERSION ) || docker build -t matthiasmullie/minify:$$ VERSION . --build-arg VERSION=$$ VERSION; \
15
- docker run $$ VOLUMES matthiasmullie/minify:$$ VERSION env XDEBUG_MODE=coverage vendor/bin/phpunit $(TEST ) --coverage-clover build/coverage-$(PHP ) -$(TEST ) .clover
15
+ docker run $$ VOLUMES matthiasmullie/minify:$$ VERSION env XDEBUG_MODE=coverage vendor/bin/phpunit $(TEST ) --coverage-clover build/coverage-$(PHP ) -$(TEST ) .clover --configuration=phpunit.xml
16
16
17
17
format :
18
18
VOLUMES=" "
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" colors =" true" bootstrap =" tests/bootstrap.php" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.2/phpunit.xsd" >
2
+ <phpunit
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ colors =" true"
5
+ bootstrap =" tests/bootstrap.php"
6
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
7
+ displayDetailsOnTestsThatTriggerErrors =" true"
8
+ displayDetailsOnTestsThatTriggerNotices =" true"
9
+ displayDetailsOnTestsThatTriggerWarnings =" true"
10
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.2/phpunit.xsd"
11
+ >
3
12
<coverage >
4
13
<report >
5
14
<clover outputFile =" build/coverage.clover" />
Original file line number Diff line number Diff line change 3
3
namespace MatthiasMullie \Minify \Tests \CSS ;
4
4
5
5
use MatthiasMullie \Minify \Tests \CompatTestCase ;
6
+ use PHPUnit \Framework \Attributes \DataProvider ;
6
7
7
8
/**
8
9
* CSS minifier test case.
@@ -21,6 +22,7 @@ protected function getMinifier()
21
22
*
22
23
* @dataProvider dataProvider
23
24
*/
25
+ #[DataProvider('dataProvider ' )]
24
26
public function testMinify ($ input , $ expected )
25
27
{
26
28
$ minifier = $ this ->getMinifier ();
@@ -34,6 +36,7 @@ public function testMinify($input, $expected)
34
36
*
35
37
* @dataProvider dataProviderPaths
36
38
*/
39
+ #[DataProvider('dataProviderPaths ' )]
37
40
public function testConvertRelativePath ($ source , $ target , $ expected )
38
41
{
39
42
$ minifier = $ this ->getMinifier ();
Original file line number Diff line number Diff line change 3
3
namespace MatthiasMullie \Minify \Tests \JS ;
4
4
5
5
use MatthiasMullie \Minify \Tests \CompatTestCase ;
6
+ use PHPUnit \Framework \Attributes \DataProvider ;
6
7
7
8
/**
8
9
* JS minifier test case.
@@ -45,6 +46,7 @@ public function testAddFile()
45
46
*
46
47
* @dataProvider dataProvider
47
48
*/
49
+ #[DataProvider('dataProvider ' )]
48
50
public function testMinify ($ input , $ expected )
49
51
{
50
52
$ minifier = $ this ->getMinifier ();
You can’t perform that action at this time.
0 commit comments