Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7ca5da

Browse files
committed
minor #16626 [Testing] use the PHPUnit bridge to run tests (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Testing] use the PHPUnit bridge to run tests fixes #16603 Commits ------- 5e4d3b1 use the PHPUnit bridge to run tests
2 parents 267d70c + 5e4d3b1 commit a7ca5da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ After the library is installed, try running PHPUnit:
2727

2828
.. code-block:: terminal
2929
30-
$ php ./vendor/bin/phpunit
30+
$ php bin/phpunit
3131
3232
This command automatically runs your application tests. Each test is a
3333
PHP class ending with "Test" (e.g. ``BlogControllerTest``) that lives in
@@ -83,18 +83,18 @@ of your application for unit tests. So, if you're testing a class in the
8383
Autoloading is automatically enabled via the ``vendor/autoload.php`` file
8484
(as configured by default in the ``phpunit.xml.dist`` file).
8585

86-
You can run tests using the ``./vendor/bin/phpunit`` command:
86+
You can run tests using the ``bin/phpunit`` command:
8787

8888
.. code-block:: terminal
8989
9090
# run all tests of the application
91-
$ php ./vendor/bin/phpunit
91+
$ php bin/phpunit
9292
9393
# run all tests in the Form/ directory
94-
$ php ./vendor/bin/phpunit tests/Form
94+
$ php bin/phpunit tests/Form
9595
9696
# run tests for the UserType class
97-
$ php ./vendor/bin/phpunit tests/Form/UserTypeTest.php
97+
$ php bin/phpunit tests/Form/UserTypeTest.php
9898
9999
.. tip::
100100

0 commit comments

Comments
 (0)