dbunit
DbUnit port for PHP/PHPUnit to support database interaction testing
Install
- All systems
-
curl cmd.cat/dbunit.sh
- Debian
-
apt-get install phpunit-dbunit
- Ubuntu
-
apt-get install phpunit-dbunit
- Kali Linux
-
apt-get install phpunit-dbunit
- Fedora
-
dnf install phpunit-dbunit
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install phpunit-dbunit
- Raspbian
-
apt-get install phpunit-dbunit
- Dockerfile
- dockerfile.run/dbunit
phpunit-dbunit
DbUnit port for PHP/PHPUnit to support database interaction testing
DBUnit is an extension to PHPUnit, that "has been created to provide an easy way to place your database in a known state, execute your database-affecting code, and ensure that the expected data is found in the database.", quoting the PHPUnit manual. PHPUnit is a unit testing suite for the PHP language, modelled on the xUnit testing framework, designed by Kent Beck and Erich Gamma. If you've used JUnit (for Java), PyUnit (for Python), CxxUnit (for C++), or any of the other equivalents for other languages, the API for this package should seem fairly familiar. If you've never written unit tests before, the PHPUnit API is simple to learn and use.