Skip to content

Commit 8ad7955

Browse files
committed
Add convenience scripts for testing to composer.json file.
1 parent 70265d8 commit 8ad7955

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,13 @@
3939
"lcobucci/jwt": "^3.3",
4040
"phpunit/phpunit": "^8.5"
4141
},
42+
"scripts": {
43+
"tests:example": "php -S localhost:8080 -t ./tests/ ./tests/example.php",
44+
"tests:unit": "phpunit ./tests/unit"
45+
},
46+
"scripts-descriptions": {
47+
"tests:example": "Run internal PHP development server with example code",
48+
"tests:unit": "Run unit-test with PHPUnit"
49+
},
4250
"type": "library"
4351
}

0 commit comments

Comments
 (0)