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

Skip to content

Commit 1b0cfaf

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: use the PHPUnit bridge to run tests
2 parents 833f1b5 + a7ca5da commit 1b0cfaf

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
@@ -26,7 +26,7 @@ After the library is installed, try running PHPUnit:
2626

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

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

8787
.. code-block:: terminal
8888
8989
# run all tests of the application
90-
$ php ./vendor/bin/phpunit
90+
$ php bin/phpunit
9191
9292
# run all tests in the Form/ directory
93-
$ php ./vendor/bin/phpunit tests/Form
93+
$ php bin/phpunit tests/Form
9494
9595
# run tests for the UserType class
96-
$ php ./vendor/bin/phpunit tests/Form/UserTypeTest.php
96+
$ php bin/phpunit tests/Form/UserTypeTest.php
9797
9898
.. tip::
9999

0 commit comments

Comments
 (0)