diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..047ced0
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+/.gitattributes export-ignore
+/.gitignore export-ignore
+/.travis.yml export-ignore
+/examples export-ignore
+/phpunit.xml export-ignore
+/phpunit-legacy.xml export-ignore
+/tests export-ignore
diff --git a/.travis.yml b/.travis.yml
index 14eeac7..11c9492 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,26 +1,23 @@
language: php
-php:
-# - 5.3 # requires old distro, see below
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - 7.2
- - hhvm # ignore errors, see below
-
# lock distro so future defaults will not break the build
dist: trusty
-matrix:
+jobs:
include:
- php: 5.3
dist: precise
+ - php: 5.4
+ - php: 5.5
+ - php: 5.6
+ - php: 7.0
+ - php: 7.1
+ - php: 7.2
+ - php: 7.3
+ - php: 7.4
+ - php: hhvm-3.18
allow_failures:
- - php: hhvm
-
-sudo: false
+ - php: hhvm-3.18
addons:
apt:
@@ -28,7 +25,8 @@ addons:
- graphviz
install:
- - composer install --no-interaction
+ - composer install
script:
- - vendor/bin/phpunit --coverage-text
+ - if [[ "$TRAVIS_PHP_VERSION" > "7.2" ]]; then vendor/bin/phpunit --coverage-text; fi
+ - if [[ "$TRAVIS_PHP_VERSION" < "7.3" ]]; then vendor/bin/phpunit --coverage-text -c phpunit-legacy.xml; fi
diff --git a/composer.json b/composer.json
index a096aa4..4d8aea6 100644
--- a/composer.json
+++ b/composer.json
@@ -13,6 +13,6 @@
"graphp/graph": "dev-master#81eef65 as 1.0.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
+ "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
}
}
diff --git a/phpunit-legacy.xml b/phpunit-legacy.xml
new file mode 100644
index 0000000..fac174b
--- /dev/null
+++ b/phpunit-legacy.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+ ./tests/
+
+
+
+
+ ./src
+
+
+
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..7e8a89a
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ ./tests/
+
+
+
+
+ ./src
+
+
+
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
deleted file mode 100644
index 7d3929a..0000000
--- a/phpunit.xml.dist
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- ./tests/
-
-
-
-
- ./src
-
-
-
\ No newline at end of file
diff --git a/tests/GraphVizTest.php b/tests/GraphVizTest.php
index ab2c215..57678de 100644
--- a/tests/GraphVizTest.php
+++ b/tests/GraphVizTest.php
@@ -8,7 +8,10 @@ class GraphVizTest extends TestCase
{
private $graphViz;
- public function setUp()
+ /**
+ * @before
+ */
+ public function setUpGraphViz()
{
$this->graphViz = new GraphViz();
}