From 5fbcabc130d63ff9ba72d1714fe04f2ed08816f2 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Sat, 12 Jan 2019 17:24:52 +0100 Subject: [PATCH 1/3] add simple-phpunit wrapper tool --- README.md | 1 + resources/tools.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 4d1a8f42..300e0ebc 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ It has been extracted as a separate project to make maintenance easier and enabl * psalm - [Finds errors in PHP applications](https://getpsalm.org/) * psecio-parse - [Scans code for potential security-related issues](https://github.com/psecio/parse) * security-checker - [Checks composer dependencies for known security vulnerabilities](https://github.com/sensiolabs/security-checker) +* simple-phpunit - [The PHPUnit Bridge provides utilities to report legacy tests and usage of deprecated code and a helper for time-sensitive tests.](https://symfony.com/doc/current/components/phpunit_bridge.html) * testability - [Analyses and reports testability issues of a php codebase](https://github.com/edsonmedina/php_testability) ## Installation diff --git a/resources/tools.json b/resources/tools.json index 37518994..2d090ebd 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -612,6 +612,18 @@ "test": "security-checker", "tags": ["featured"] }, + { + "name": "simple-phpunit", + "summary": "The PHPUnit Bridge provides utilities to report legacy tests and usage of deprecated code and a helper for time-sensitive tests.", + "website": "https://symfony.com/doc/current/components/phpunit_bridge.html", + "command": { + "composer-bin-plugin": { + "package": "symfony/phpunit-bridge", + "namespace": "symfony" + } + }, + "test": "simple-phpunit --version" + }, { "name": "testability", "summary": "Analyses and reports testability issues of a php codebase", From 330646af843a8c83c602b26f53dead2fd37f8306 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Sat, 12 Jan 2019 21:18:01 +0100 Subject: [PATCH 2/3] update test --- resources/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/tools.json b/resources/tools.json index 2d090ebd..fdae0722 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -622,7 +622,7 @@ "namespace": "symfony" } }, - "test": "simple-phpunit --version" + "test": "type simple-phpunit" }, { "name": "testability", From 2b6cfa01d93b1436fd202413d519437609da35b5 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Mon, 14 Jan 2019 10:08:23 +0100 Subject: [PATCH 3/3] pre-install --- resources/tools.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/tools.json b/resources/tools.json index fdae0722..f94c1fc6 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -620,9 +620,12 @@ "composer-bin-plugin": { "package": "symfony/phpunit-bridge", "namespace": "symfony" + }, + "sh": { + "command": "simple-phpunit install" } }, - "test": "type simple-phpunit" + "test": "simple-phpunit --version" }, { "name": "testability",