O
O
Optimus2017-08-17 19:11:19
PHP
Optimus, 2017-08-17 19:11:19

Why won't phpunit start?

Preface: composer is installed locally, so installing anything through it is done with a full command. For example:

php composer.phar require --dev phpunit/phpunit ^5.7

I created a folder with the class under test, the tests folder contains the test, run:
phpunit sqrt_class_test.php
-bash: phpunit: command not found

probably a local installation, the command is not registered at the system level, the command is also full:
php composer.phar phpunit tests/sqrt_class_test.php

Answer:
0650e905ad704d08aeb9eae22e877c7b.png
It doesn't work either.
How to run correctly in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nesmeyanov, 2017-08-17
Pyan @marrk2

php ./vendor/bin/phpunit ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question