Skip to content

Commit 759c614

Browse files
Support composer test command (#115)
This is a simple PR that allows tests to be run with `composer test`, as one might guess they could be run. This also fixes an unrelated typo.
1 parent c7ed61b commit 759c614

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ composer install
7171
### Run tests with
7272

7373
```shell
74-
vendor/bin/phpunit --testdox
74+
composer test
7575
```
7676

7777
### Run Blueprints in a variety of ways
@@ -82,7 +82,7 @@ vendor/bin/phpunit --testdox
8282
php examples/blueprint_compiling.php
8383
```
8484

85-
#### using a string containg a Blueprint (in JSON):
85+
#### using a string containing a Blueprint (in JSON):
8686

8787
```shell
8888
php examples/json_string_compiling.php

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@
3737
"classmap": [
3838
"tests/"
3939
]
40+
},
41+
"scripts": {
42+
"test": "phpunit --testdox"
4043
}
4144
}

0 commit comments

Comments
 (0)