Skip to content

Commit

Permalink
Merge pull request #171 from xabbuh/php-7.4-compat
Browse files Browse the repository at this point in the history
add PHP 7.4 job
  • Loading branch information
goetas authored Oct 14, 2019
2 parents 104443a + ff9f1cc commit 114b913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ matrix:
- php: 7.2
- php: 7.3
env: BENCHMARK=1
- php: 7.4snapshot
fast_finish: true

cache:
Expand Down
3 changes: 2 additions & 1 deletion test/HTML5/Parser/TokenizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function assertEventEquals($type, $expects, $event)
if (is_array($expects)) {
$this->assertEquals($expects, $event['data'], "Event $type should equal " . print_r($expects, true) . ': ' . print_r($event, true));
} else {
$this->assertEquals($expects, $event['data'][0], "Event $type should equal $expects: " . print_r($event, true));
$d = (is_array($event['data']) ? $event['data'][0] : null);
$this->assertEquals($expects, $d, "Event $type should equal $expects: " . print_r($event, true));
}
}

Expand Down

0 comments on commit 114b913

Please sign in to comment.