How to Install and Uninstall phpunit-mock-object Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 05,2024

1. Install "phpunit-mock-object" package

This guide let you learn how to install phpunit-mock-object on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install phpunit-mock-object

2. Uninstall "phpunit-mock-object" package

This guide covers the steps necessary to uninstall phpunit-mock-object on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove phpunit-mock-object $ sudo apt autoclean && sudo apt autoremove

3. Information about the phpunit-mock-object package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: phpunit-mock-object
Priority: optional
Section: universe/php
Installed-Size: 179
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PEAR Maintainers
Architecture: all
Version: 3.0.6-1+ubuntu1
Replaces: phpunit (<< 4.2)
Depends: php-common, php-text-template (>= 1.2), php-text-template (<< 2~~), php-doctrine-instantiator (>= 1.0.2), php-doctrine-instantiator (<< 2~~), phpunit-exporter (>= 1.2), phpunit-exporter (<< 2~~)
Filename: pool/universe/p/phpunit-mock-object/phpunit-mock-object_3.0.6-1+ubuntu1_all.deb
Size: 22274
MD5sum: f2251de2ea15115a3f0e292d47cd2420
SHA1: a20f1f4811457d485f5efc04d6cf6b9180d243d6
SHA256: 04b6e0c0b90c85e0231da6209e2771d5ea5c8dfd57d0f4241e7feb5c2e9ef6d8
Description-en: Mock Object library for PHPUnit
PHPUnit_MockObject is a PHPUnit extension that provides Mock Objects for
PHPUnit.
.
According to the PHPUnit manual "The practice of replacing an object
with a test double that verifies expectations, for instance asserting
that a method has been called, is refered to as mocking.".
.
PHPUnit is a unit testing suite for the PHP language, modelled on the xUnit
testing framework.
Description-md5: a8b86952f0cc9dd71429b48a43e8685f
Homepage: https://github.com/sebastianbergmann/phpunit-mock-objects
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

5. The same packages on other Linux Distributions