Skip to content

Commit 3a69491

Browse files
committed
Drop phug/dev-tool
1 parent 71356c6 commit 3a69491

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ jobs:
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

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
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": {

phpunit.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>

tests/Phug/JsTransformerExtensionTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44

55
use JsTransformer\JsTransformer;
66
use NodejsPhpFallback\NodejsPhpFallback;
7+
use PHPUnit\Framework\TestCase;
78
use Phug\JsTransformerExtension;
89
use Phug\JsTransformerFilter;
910
use 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
{

0 commit comments

Comments
 (0)