Skip to content

Commit

Permalink
Merge pull request #191 from Masterminds/build-fix
Browse files Browse the repository at this point in the history
Fix travisci build
  • Loading branch information
goetas authored Jul 5, 2020
2 parents aad73db + 391b571 commit 30db060
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrix:
- php: 5.4
- php: 5.5
- php: 5.6
env: SCRUTINIZER=1
env: SCRUTINIZER=1 PHPUNIT_FLAGS="--coverage-clover=coverage.xml"
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
Expand All @@ -26,14 +26,15 @@ cache:
- $HOME/.composer/cache

before_script:
- if [[ SCRUTINIZER != '1' ]]; then phpenv config-rm xdebug.ini || true; fi
- composer self-update
- composer update $COMPOSER_FLAGS --prefer-dist

script:
- stty cols 120
- if [ "$CS_FIXER" == 1 ]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar && php php-cs-fixer.phar fix --dry-run --diff; fi
- mkdir -p build/logs
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
- ./vendor/bin/phpunit $PHPUNIT_FLAGS

after_script:
- if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"php" : ">=5.3.0"
},
"require-dev": {
"satooshi/php-coveralls": "1.0.*",
"phpunit/phpunit" : "^4.8.35",
"sami/sami": "~2.0"
"phpunit/phpunit" : "^4.8.35"
},
"autoload": {
"psr-4": {"Masterminds\\": "src"}
Expand Down
10 changes: 0 additions & 10 deletions sami.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/HTML5/Parser/DOMTreeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function endTag($name)
$lname = $this->normalizeTagName($name);

// Special case within 12.2.6.4.7: An end tag whose tag name is "br" should be treated as an opening tag
if ($name === 'br') {
if ('br' === $name) {
$this->parseError('Closing tag encountered for void element br.');

$this->startTag('br');
Expand Down
2 changes: 1 addition & 1 deletion test/HTML5/Parser/DOMTreeBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function testIAudioInParagraph()

public function testClosingBr()
{
$html = <<<EOM
$html = <<<EOM
<!DOCTYPE html>
<html>
<head>
Expand Down

0 comments on commit 30db060

Please sign in to comment.