Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (5) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-07-26 (21 hours ago) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
php-unit-testing-sam 1.0 | The PHP License | 7 | Language, Testing, PHP 7 |
Description | Author | |
This package can show how to test a class using PHPUnit. |
Writing php unit testing with phpunit
Run composer require to install all missing dependencies
Then, to test: run below line in terminal specifying the file-path or directory name:
./vendor/bin/phpunit
Example:
./vendor/bin/phpunit tests
./vendor/bin/phpunit tests/UserTest.php
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
tests (1 file) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
php-unit-testing-sam-2024-07-26.zip 7KB | |
php-unit-testing-sam-2024-07-26.tar.gz 6KB | |
Install with Composer |
Version Control | Unique User Downloads | |||||||
100% |
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.