How to Install and Uninstall phpunit Package on Ubuntu 16.04 LTS (Xenial Xerus)
Last updated: January 23,2025
1. Install "phpunit" package
This guide covers the steps necessary to install phpunit on Ubuntu 16.04 LTS (Xenial Xerus)
$
sudo apt update
Copied
$
sudo apt install
phpunit
Copied
2. Uninstall "phpunit" package
This guide let you learn how to uninstall phpunit on Ubuntu 16.04 LTS (Xenial Xerus):
$
sudo apt remove
phpunit
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the phpunit package on Ubuntu 16.04 LTS (Xenial Xerus)
Package: phpunit
Priority: optional
Section: universe/web
Installed-Size: 808
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PEAR Maintainers
Architecture: all
Version: 5.1.3-1+ubuntu3
Depends: php-symfony-yaml (>= 2.4), phpunit-exporter (>= 1.2.0-2~), php-xml, php-cli, php-common, php-file-iterator (>= 1.4), php-file-iterator (<< 2~~), php-text-template (>= 1.2), php-text-template (<< 2~~), php-codecoverage (>= 3.0), php-codecoverage (<< 4~~), php-timer (>= 1.0.6), phpunit-mock-object (>= 3.0.5), php-phpspec-prophecy (>= 1.3.1), php-phpspec-prophecy (<< 2~~), phpunit-comparator (>= 1.1), phpunit-comparator (<< 2~~), phpunit-diff (>= 1.2), phpunit-diff (<< 2~~), phpunit-environment (>= 1.3), phpunit-environment (<< 2~~), phpunit-exporter (<< 2~~), phpunit-global-state (>= 1.0), phpunit-global-state (<< 2~~), phpunit-resource-operations (>= 1.0), phpunit-resource-operations (<< 2~~), phpunit-version (>= 1.0), phpunit-version (<< 2~~), php-deepcopy (>= 1.3), php-deepcopy (<< 2~~), php-json
Suggests: php-token-stream, phpunit-dbunit, php-invoker (>= 1.1), php-invoker (<< 2~~)
Filename: pool/universe/p/phpunit/phpunit_5.1.3-1+ubuntu3_all.deb
Size: 87568
MD5sum: a341a74b22d8e7e389496b77fd5c5993
SHA1: bd83ae4a3e501b8b9cbd6a5a9821b1d8bdba77f5
SHA256: 8ed50e6e2694074f8edfbe0cc51a4fcf12efd337585f017b115b44dbcde8ef2d
Description-en: Unit testing suite for PHP5
Unit testing allows you to write small test methods which verify units of
functionality in your program. It is a powerful technique for improving the
quality of your software, preventing regressions, and allowing confident
refactoring of your code.
.
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.
Description-md5: bfce54e993d162f32e9b5de6a8d87e21
Homepage: https://phpunit.de/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Priority: optional
Section: universe/web
Installed-Size: 808
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PEAR Maintainers
Architecture: all
Version: 5.1.3-1+ubuntu3
Depends: php-symfony-yaml (>= 2.4), phpunit-exporter (>= 1.2.0-2~), php-xml, php-cli, php-common, php-file-iterator (>= 1.4), php-file-iterator (<< 2~~), php-text-template (>= 1.2), php-text-template (<< 2~~), php-codecoverage (>= 3.0), php-codecoverage (<< 4~~), php-timer (>= 1.0.6), phpunit-mock-object (>= 3.0.5), php-phpspec-prophecy (>= 1.3.1), php-phpspec-prophecy (<< 2~~), phpunit-comparator (>= 1.1), phpunit-comparator (<< 2~~), phpunit-diff (>= 1.2), phpunit-diff (<< 2~~), phpunit-environment (>= 1.3), phpunit-environment (<< 2~~), phpunit-exporter (<< 2~~), phpunit-global-state (>= 1.0), phpunit-global-state (<< 2~~), phpunit-resource-operations (>= 1.0), phpunit-resource-operations (<< 2~~), phpunit-version (>= 1.0), phpunit-version (<< 2~~), php-deepcopy (>= 1.3), php-deepcopy (<< 2~~), php-json
Suggests: php-token-stream, phpunit-dbunit, php-invoker (>= 1.1), php-invoker (<< 2~~)
Filename: pool/universe/p/phpunit/phpunit_5.1.3-1+ubuntu3_all.deb
Size: 87568
MD5sum: a341a74b22d8e7e389496b77fd5c5993
SHA1: bd83ae4a3e501b8b9cbd6a5a9821b1d8bdba77f5
SHA256: 8ed50e6e2694074f8edfbe0cc51a4fcf12efd337585f017b115b44dbcde8ef2d
Description-en: Unit testing suite for PHP5
Unit testing allows you to write small test methods which verify units of
functionality in your program. It is a powerful technique for improving the
quality of your software, preventing regressions, and allowing confident
refactoring of your code.
.
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.
Description-md5: bfce54e993d162f32e9b5de6a8d87e21
Homepage: https://phpunit.de/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu