Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-07-26 (2 months ago) | Not yet rated by the users | Total: 26 | All time: 11,194 This week: 42 |
Version | License | PHP version | Categories | |||
php-unit-testing-sam 1.0.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 (5) |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
tests (1 file) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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 | Download Rankings | |||||||||||||||
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.