Skip to content

Commit b363cb3

Browse files
authored
Merge pull request #204 from alecpl/travis-php8
Travis: Enable tests on PHP 8.0
2 parents 9227822 + 9357c1a commit b363cb3

File tree

5 files changed

+5
-19
lines changed

5 files changed

+5
-19
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ matrix:
1818
- php: 7.2
1919
- php: 7.3
2020
env: BENCHMARK=1
21-
- php: 7.4snapshot
21+
- php: 7.4
22+
- php: 8.0
23+
dist: bionic
2224
fast_finish: true
2325

2426
cache:
@@ -28,6 +30,7 @@ cache:
2830
before_script:
2931
- if [[ SCRUTINIZER != '1' ]]; then phpenv config-rm xdebug.ini || true; fi
3032
- composer self-update
33+
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer config platform.php 7.4; fi
3134
- composer update $COMPOSER_FLAGS --prefer-dist
3235

3336
script:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php" : ">=5.3.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit" : "^4.8.35"
29+
"phpunit/phpunit" : "^4.8.35 || ^5.7.21 || ^6 || ^7"
3030
},
3131
"autoload": {
3232
"psr-4": {"Masterminds\\": "src"}

phpunit.xml.dist

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,4 @@
55
<directory>test/HTML5/</directory>
66
</testsuite>
77
</testsuites>
8-
<filter>
9-
<blacklist>
10-
<file>systemlib.phpreflection_hni</file>
11-
<file>src/HTML5/Parser/InputStream.php</file>
12-
<file>src/HTML5/Serializer/RulesInterface.php</file>
13-
<file>src/HTML5/Entities.php</file>
14-
<file>src/HTML5/Serializer/HTML5Entities.php</file>
15-
</blacklist>
16-
</filter>
178
</phpunit>

test/HTML5/Parser/TokenizerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,6 @@ public function testIllegalTagNames()
568568
}
569569
}
570570

571-
/**
572-
* @depends testCharacterReference
573-
*/
574571
public function testTagAttributes()
575572
{
576573
// Opening tags.

test/HTML5/TestCase.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ class TestCase extends BaseTestCase
1111

1212
const DOC_CLOSE = '</body></html>';
1313

14-
public function testFoo()
15-
{
16-
// Placeholder. Why is PHPUnit emitting warnings about no tests?
17-
}
18-
1914
public function getInstance(array $options = array())
2015
{
2116
return new HTML5($options);

0 commit comments

Comments
 (0)