File tree Expand file tree Collapse file tree 5 files changed +31
-5
lines changed Expand file tree Collapse file tree 5 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 5353 composer update --prefer-dist ${{ matrix.setup != 'next' && format('--prefer-{0}', matrix.setup) || '' }} --no-progress
5454
5555 - name : Run test suite
56- run : vendor/bin/phug-dev check --report --coverage-php-version=${{ matrix.php }}
56+ run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml --no-interaction
5757
5858 - name : Coverage
5959 uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 4646 MULTI_TESTER_LABELS : install
4747
4848 - name : Run test suite
49- run : vendor/bin/phug-dev check --report
49+ run : vendor/bin/phpunit --no-coverage --no-interaction
5050 env :
5151 MULTI_TESTER_LABELS : script
Original file line number Diff line number Diff line change 1010 "js-transformer/js-transformer" : " ^1.0"
1111 },
1212 "require-dev" : {
13- "phpunit/phpunit" : " ^4 || ^5" ,
14- "phug/dev-tool" : " ^0.1.11"
13+ "phpunit/phpunit" : " ^4 || ^5"
1514 },
1615 "autoload" : {
1716 "psr-0" : {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/5.6/phpunit.xsd"
4+ colors =" true"
5+ bootstrap =" ./vendor/autoload.php"
6+ forceCoversAnnotation =" true"
7+ convertErrorsToExceptions =" true"
8+ convertNoticesToExceptions =" true"
9+ convertWarningsToExceptions =" true"
10+ verbose =" true" >
11+ <testsuites >
12+ <testsuite name =" Phug" >
13+ <directory >./tests</directory >
14+ </testsuite >
15+ </testsuites >
16+ <filter >
17+ <whitelist addUncoveredFilesFromWhitelist =" true" processUncoveredFilesFromWhitelist =" true" >
18+ <directory suffix =" .php" >./src</directory >
19+ </whitelist >
20+ </filter >
21+ </phpunit >
Original file line number Diff line number Diff line change 44
55use JsTransformer \JsTransformer ;
66use NodejsPhpFallback \NodejsPhpFallback ;
7+ use PHPUnit \Framework \TestCase ;
78use Phug \JsTransformerExtension ;
89use Phug \JsTransformerFilter ;
910use Phug \Phug ;
11+ use PHPUnit_Framework_TestCase ;
12+
13+ if (!class_exists (PHPUnit_Framework_TestCase::class)) {
14+ class_alias (TestCase::class, PHPUnit_Framework_TestCase::class);
15+ }
1016
1117/**
1218 * @coversDefaultClass \Phug\JsTransformerExtension
1319 */
14- class JsTransformerExtensionTest extends \ PHPUnit_Framework_TestCase
20+ class JsTransformerExtensionTest extends PHPUnit_Framework_TestCase
1521{
1622 protected static function removeDirectory ($ dir )
1723 {
You can’t perform that action at this time.
0 commit comments