added `PHPUnit` as dev dependency

* added the `PHPUnit` requirement
* added script `test` to composer for running all tests
feature/tests
Michael Ochmann 3 years ago
parent 0378f35b07
commit edafdd15ea
  1. 7
      composer.json
  2. 16
      composer.lock

@ -14,6 +14,9 @@
} }
], ],
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9"
} },
"scripts" : {
"test" : "./vendor/bin/phpunit tests --testdox --bootstrap tests/util.php"
}
} }

16
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "e2289ec2def0b32ef8010e9336707400", "content-hash": "279a20d650c6a9ed1a0b5762efc6325a",
"packages": [], "packages": [],
"packages-dev": [ "packages-dev": [
{ {
@ -848,16 +848,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "9.5.16", "version": "9.5.18",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "5ff8c545a50226c569310a35f4fa89d79f1ddfdc" "reference": "1b5856028273bfd855e60a887278857d872ec67a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5ff8c545a50226c569310a35f4fa89d79f1ddfdc", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1b5856028273bfd855e60a887278857d872ec67a",
"reference": "5ff8c545a50226c569310a35f4fa89d79f1ddfdc", "reference": "1b5856028273bfd855e60a887278857d872ec67a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -935,7 +935,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.16" "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.18"
}, },
"funding": [ "funding": [
{ {
@ -947,7 +947,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2022-02-23T17:10:58+00:00" "time": "2022-03-08T06:52:28+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -2111,5 +2111,5 @@
"prefer-lowest": false, "prefer-lowest": false,
"platform": [], "platform": [],
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.1.0" "plugin-api-version": "2.3.0"
} }

Loading…
Cancel
Save