Download the PHP package wp-media/phpunit without Composer
On this page you can find all versions of the php package wp-media/phpunit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wp-media/phpunit
More information about wp-media/phpunit
Files in wp-media/phpunit
Download wp-media/phpunit
More information about wp-media/phpunit
Files in wp-media/phpunit
Vendor wp-media
Package phpunit
Short Description PHPUnit extender for bootstrapping unit and WordPress integration test suites.
License GPL-2.0+
Homepage https://github.com/wp-media/phpunit
Package phpunit
Short Description PHPUnit extender for bootstrapping unit and WordPress integration test suites.
License GPL-2.0+
Homepage https://github.com/wp-media/phpunit
Please rate this library. Is it a good library?
Informations about the package phpunit
Common PHPUnit Unit and Integration Bootstrapper
This reusable package bootstraps our PHPUnit unit and integration tests. It includes:
- bootstrapping for both Unit and Integration tests
phpunit.xml.dist
for each test suiteTestCase
for each test suite- Common polyfill functions
This means your repo only needs its tests. w00t!
Configuring Composer in Your Repo
In your repo's composer.json
file, add the following "require-dev"
dependency:
Custom Bootstrapping Your Repo
Sometimes you need a custom bootstrapping solution in your repo, such as loading a factory, handling licensing, etc. Here are the steps to get you rolling:
- Add a
bootstrap.php
file inUnit
orIntegration
directory. - In your
Tests/Integration/bootstrap.php
file, add the following code to it:
Custom Test Case
When you need to customize the test case, extend off of the base test cases in this package:
- For a custom integration, extend off of
WPMedia\PHPUnit\Integration\TestCase
. - For a custom unit, extend off of
WPMedia\PHPUnit\Unit\TestCase
.
All versions of phpunit with dependencies
PHP Build Version
Package Version
The package wp-media/phpunit contains the following files
Loading the files please wait ....