Skip to content

Commit

Permalink
Travis: Enable tests on PHP 8.0
Browse files Browse the repository at this point in the history
Cleanup tests code and setup
  • Loading branch information
alecpl committed Mar 28, 2021
1 parent 9227822 commit 7ccdfa9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ matrix:
- php: 7.2
- php: 7.3
env: BENCHMARK=1
- php: 7.4snapshot
- php: 7.4
- php: 8.0
fast_finish: true

cache:
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 7ccdfa9

Please sign in to comment.