Skip to content

Commit 30db060

Browse files
authored
Merge pull request #191 from Masterminds/build-fix
Fix travisci build
2 parents aad73db + 391b571 commit 30db060

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ matrix:
1010
- php: 5.4
1111
- php: 5.5
1212
- php: 5.6
13-
env: SCRUTINIZER=1
13+
env: SCRUTINIZER=1 PHPUNIT_FLAGS="--coverage-clover=coverage.xml"
1414
- php: 7.0
1515
env: COMPOSER_FLAGS="--prefer-lowest"
1616
- php: 7.1
@@ -26,14 +26,15 @@ cache:
2626
- $HOME/.composer/cache
2727

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

3233
script:
3334
- stty cols 120
3435
- 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
3536
- mkdir -p build/logs
36-
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
37+
- ./vendor/bin/phpunit $PHPUNIT_FLAGS
3738

3839
after_script:
3940
- if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
"php" : ">=5.3.0"
2727
},
2828
"require-dev": {
29-
"satooshi/php-coveralls": "1.0.*",
30-
"phpunit/phpunit" : "^4.8.35",
31-
"sami/sami": "~2.0"
29+
"phpunit/phpunit" : "^4.8.35"
3230
},
3331
"autoload": {
3432
"psr-4": {"Masterminds\\": "src"}

sami.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/HTML5/Parser/DOMTreeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public function endTag($name)
475475
$lname = $this->normalizeTagName($name);
476476

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

481481
$this->startTag('br');

test/HTML5/Parser/DOMTreeBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ public function testIAudioInParagraph()
718718

719719
public function testClosingBr()
720720
{
721-
$html = <<<EOM
721+
$html = <<<EOM
722722
<!DOCTYPE html>
723723
<html>
724724
<head>

0 commit comments

Comments
 (0)