PHPUnit – Test Suit using file system

Test suit is a collection of test cases. PHPUnit can compose a test suit by recursively traversing through a directory in the file system.

In our previous example, we have saved our test case files in the directory tests.

PHPUnit can execute all the test cases in the directory tests as a test suite with the given below command

$ ./vendor/bin/phpunit tests

The result of the above command is given below :

Comments on this post

No comments.

Leave a Reply

Your email address will not be published. Required fields are marked *

Trackbacks and Pinbacks on this post

No trackbacks.

TrackBack URL