Merge pull request #322 from GrahamCampbell/patch-1

Fixed failing travis builds
This commit is contained in:
Michel Fortin 2019-12-28 10:54:16 -05:00 committed by GitHub
commit 2d74367653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 21 deletions

View file

@ -1,25 +1,29 @@
language: php
sudo: false
matrix:
include:
- php: hhvm-3.18
dist: trusty
- php: 5.3
dist: precise
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
dist: xenial
- php: 7.0
dist: xenial
- php: 7.1
dist: bionic
- php: 7.2
dist: bionic
- php: 7.3
dist: bionic
- php: 7.4
dist: bionic
cache:
directories:
- $HOME/.composer/
# Run tests against all these PHP versions
# TODO: When it becomes possible in TravisCI, switch 7.4snapshot to plain 7.4
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4snapshot
- hhvm
before_script:
install:
- composer install --prefer-dist
script:

View file

@ -20,7 +20,7 @@ class MarkdownTestHelper
RecursiveRegexIterator::GET_MATCH
);
$dataValues = [];
$dataValues = array();
/** @var SplFileInfo $inputFile */
foreach ($regexIterator as $inputFiles) {
@ -31,7 +31,7 @@ class MarkdownTestHelper
$expectedHtmlPath = substr($inputMarkdownPath, 0, -4) . 'html';
$xhtml = false;
}
$dataValues[] = [$inputMarkdownPath, $expectedHtmlPath, $xhtml];
$dataValues[] = array($inputMarkdownPath, $expectedHtmlPath, $xhtml);
}
}