Skip to content

To explain test doubles in PHPUnit by using various examples.

License

Notifications You must be signed in to change notification settings

deminy/test-doubles-explained

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To explain test doubles in PHPUnit by using various examples.

For details, please read the source code under folder ./unit and run the tests using PHPUnit.

Usage

First, run the following command to install/update Composer packages:

composer update -n

Now we can run PHPUnit tests:

./vendor/bin/phpunit

Version Matrix

Following table shows the versions of PHP and PHPUnit used to run the tests of this project via GitHub Actions:

PHP Versions PHPUnit Versions
PHP 7.3 PHPUnit 9
PHP 7.4 PHPUnit 9
PHP 8.0 PHPUnit 9
PHP 8.1 PHPUnit 10
PHP 8.2 PHPUnit 11
PHP 8.3 PHPUnit 11

References

About

To explain test doubles in PHPUnit by using various examples.

Topics

Resources

License

Stars

Watchers

Forks

Languages