From 4b29005836cac98add1132082f9727413211bb84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Thu, 27 Oct 2022 11:38:57 +0200 Subject: [PATCH] Update test suite and report failed assertions --- .github/workflows/ci.yml | 1 + composer.json | 20 ++++++++++---------- phpunit.xml.dist | 11 ++++++++--- phpunit.xml.legacy | 8 ++++++++ 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44830267..1105f82d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: with: php-version: ${{ matrix.php }} coverage: xdebug + ini-file: development - run: composer install - run: vendor/bin/phpunit --coverage-text if: ${{ matrix.php >= 7.3 }} diff --git a/composer.json b/composer.json index 5b7de5b2..b198b6cd 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,16 @@ "email": "christian@clue.engineering" } ], + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" + }, + "suggest": { + "graphp/graphviz": "GraphViz graph drawing / DOT output", + "graphp/algorithms": "Common graph algorithms, such as Dijkstra and Moore-Bellman-Ford (shortest path), minimum spanning tree (MST), Kruskal, Prim and many more.." + }, "autoload": { "psr-4": { "Graphp\\Graph\\": "src/" @@ -26,15 +36,5 @@ "psr-4": { "Graphp\\Graph\\Tests\\": "tests/" } - }, - "require": { - "php": ">=5.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" - }, - "suggest": { - "graphp/graphviz": "GraphViz graph drawing / DOT output", - "graphp/algorithms": "Common graph algorithms, such as Dijkstra and Moore-Bellman-Ford (shortest path), minimum spanning tree (MST), Kruskal, Prim and many more.." } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e462441b..407f8710 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - - + + + + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 44030e25..bf31c92f 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -15,4 +15,12 @@ ./src/ + + + + + + + +