Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

brianium/paratest v7.4.3

Parallel testing for PHP
Package summary
Share
0
issues
2
licenses
25
BSD-3-Clause
14
MIT
Package created
18 Oct 2012
Version published
20 Feb 2024
Maintainers
4
Total deps
39
Direct deps
9
License
MIT

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
25 Packages, Including:
nikic/php-parser@v5.0.2
phar-io/manifest@2.0.4
phar-io/version@3.2.1
phpunit/php-code-coverage@11.0.3
phpunit/php-file-iterator@5.0.0
phpunit/php-invoker@5.0.0
phpunit/php-text-template@4.0.0
phpunit/php-timer@7.0.0
phpunit/phpunit@11.1.3
sebastian/cli-parser@3.0.1
sebastian/code-unit@3.0.0
sebastian/code-unit-reverse-lookup@4.0.0
sebastian/comparator@6.0.0
sebastian/complexity@4.0.0
sebastian/diff@6.0.1
sebastian/environment@7.1.0
sebastian/exporter@6.0.1
sebastian/global-state@7.0.1
sebastian/lines-of-code@3.0.0
sebastian/object-enumerator@6.0.0
sebastian/object-reflector@4.0.0
sebastian/recursion-context@6.0.0
sebastian/type@5.0.0
sebastian/version@5.0.0
theseer/tokenizer@1.2.3

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
14 Packages, Including:
brianium/paratest@v7.4.3
fidry/cpu-core-counter@1.1.0
jean85/pretty-package-versions@2.0.6
myclabs/deep-copy@1.11.1
psr/container@2.0.2
symfony/console@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/process@v7.0.7
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

9
All Dependencies CSV
β“˜ This is a list of brianium/paratest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
fidry/cpu-core-counter1.1.026.15 kBMIT
prod
jean85/pretty-package-versions2.0.6-MIT
prod
phpunit/php-code-coverage11.0.3-BSD-3-Clause
prod dev
phpunit/php-file-iterator5.0.09.42 kBBSD-3-Clause
prod dev
phpunit/php-timer7.0.0-BSD-3-Clause
prod dev
phpunit/phpunit11.1.3-BSD-3-Clause
prod dev
sebastian/environment7.1.0-BSD-3-Clause
prod dev
symfony/consolev7.0.7-MIT
prod
symfony/processv7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does brianium/paratest do?

The brianium/paratest is a parallel testing tool for PHP. It aims to support parallel testing in PHPUnit. The major benefit of this package is that it requires zero configuration. It can easily be dropped into your project to begin using it as long as you have well-written PHPUnit tests. It has the ability to run tests in parallel by TestCase or by Test, and all the code coverage output from running your tests in parallel processes will be combined into one report.

How do you use brianium/paratest?

Using brianium/paratest is quite straightforward. First, you need to install it with composer by running the command composer require --dev brianium/paratest. After installation, you can find the binary at vendor/bin/paratest. You can then run this binary with the --help option to see a complete list of the available options. Here's a basic usage example:

if (getenv('TEST_TOKEN') !== false) {  // Using ParaTest
    $dbname = 'testdb_' . getenv('TEST_TOKEN');
} else {
    $dbname = 'testdb';
}

For code coverage, you can use PCOV or xDebug.

For PCOV, this code sample shows how to pass the required PHP binary option:

php -d pcov.enabled=1 vendor/bin/paratest --passthru-php="'-d' 'pcov.enabled=1'"

For xDebug, environment variable activation is enough for it to run even in the subprocesses:

XDEBUG_MODE=coverage vendor/bin/paratest

Where are the brianium/paratest docs?

You can find the documentation for brianium/paratest right within its GitHub repository at https://github.com/paratestphp/paratest. The detailed readme file serves as a comprehensive guide on how to install, use, and troubleshoot the package. You will also find information about the versions supported, how to integrate with PHPStorm, and some of the caveats to be aware of.