Skip to content

Commit c0dcf9a

Browse files
committed
Add composer test. Hat tip, @hannesvdvreken
1 parent 3215531 commit c0dcf9a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"psr-4": {
2020
"Bramus\\Ansi\\": "src/"
2121
}
22+
},
23+
"scripts": {
24+
"test": "vendor/bin/phpunit"
2225
}
2326
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ echo $bell . $bell . $eraseDisplay . $bell;
312312

313313
- If PHPUnit is installed globally run `phpunit` to run the tests.
314314

315-
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `vendor/bin/phpunit`.
315+
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `vendor/bin/phpunit` or `composer test`
316316

317317
Unit tests are also automatically run [on Travis CI](http://travis-ci.org/bramus/ansi-php)
318318

0 commit comments

Comments
 (0)