Skip to content

Commit

Permalink
Merge pull request #204 from alecpl/travis-php8
Browse files Browse the repository at this point in the history
Travis: Enable tests on PHP 8.0
  • Loading branch information
goetas authored Mar 28, 2021
2 parents 9227822 + 9357c1a commit b363cb3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ matrix:
- php: 7.2
- php: 7.3
env: BENCHMARK=1
- php: 7.4snapshot
- php: 7.4
- php: 8.0
dist: bionic
fast_finish: true

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

script:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php" : ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit" : "^4.8.35"
"phpunit/phpunit" : "^4.8.35 || ^5.7.21 || ^6 || ^7"
},
"autoload": {
"psr-4": {"Masterminds\\": "src"}
Expand Down
9 changes: 0 additions & 9 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,4 @@
<directory>test/HTML5/</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<file>systemlib.phpreflection_hni</file>
<file>src/HTML5/Parser/InputStream.php</file>
<file>src/HTML5/Serializer/RulesInterface.php</file>
<file>src/HTML5/Entities.php</file>
<file>src/HTML5/Serializer/HTML5Entities.php</file>
</blacklist>
</filter>
</phpunit>
3 changes: 0 additions & 3 deletions test/HTML5/Parser/TokenizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,6 @@ public function testIllegalTagNames()
}
}

/**
* @depends testCharacterReference
*/
public function testTagAttributes()
{
// Opening tags.
Expand Down
5 changes: 0 additions & 5 deletions test/HTML5/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ class TestCase extends BaseTestCase

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

public function testFoo()
{
// Placeholder. Why is PHPUnit emitting warnings about no tests?
}

public function getInstance(array $options = array())
{
return new HTML5($options);
Expand Down

0 comments on commit b363cb3

Please sign in to comment.