Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis: Enable tests on PHP 8.0 #204

Merged
merged 3 commits into from
Mar 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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