Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via composer

brianium/paratest 2.2.0

Parallel testing for PHP
Package summary
Share
1
issue
1
high severity
meta
1
2
licenses
20
MIT
20
BSD-3-Clause
Package created
18 Oct 2012
Version published
28 Jan 2019
Maintainers
4
Total deps
40
Direct deps
7
License
MIT

Issues

1

1 high severity issue

high
via: phpunit/php-code-coverage@6.1.4 & others
Collapse
Expand

Licenses

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
20 Packages, Including:
brianium/habitat@v1.0.0
brianium/paratest@2.2.0
composer/semver@1.7.2
doctrine/deprecations@1.1.3
doctrine/instantiator@1.5.0
myclabs/deep-copy@1.11.1
phpdocumentor/reflection-common@2.2.0
phpdocumentor/reflection-docblock@5.4.0
phpdocumentor/type-resolver@1.8.2
phpspec/prophecy@v1.19.0
phpstan/phpdoc-parser@1.28.0
psr/container@1.1.2
symfony/console@v4.4.49
symfony/deprecation-contracts@v3.4.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php73@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/process@v4.4.44
symfony/service-contracts@v2.5.3
webmozart/assert@1.11.0

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
20 Packages, Including:
phar-io/manifest@1.0.3
phar-io/version@2.0.1
phpunit/php-code-coverage@6.1.4
phpunit/php-file-iterator@2.0.6
phpunit/php-text-template@1.2.1
phpunit/php-timer@2.1.4
phpunit/php-token-stream@3.1.3
phpunit/phpunit@7.5.20
sebastian/code-unit-reverse-lookup@1.0.3
sebastian/comparator@3.0.5
sebastian/diff@3.0.6
sebastian/environment@4.2.5
sebastian/exporter@3.1.6
sebastian/global-state@2.0.0
sebastian/object-enumerator@3.0.5
sebastian/object-reflector@1.1.3
sebastian/recursion-context@3.0.2
sebastian/resource-operations@2.0.3
sebastian/version@2.0.1
theseer/tokenizer@1.2.3
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

7
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
brianium/habitatv1.0.018.61 kBMIT
prod
composer/semver1.7.216.15 kBMIT
prod
phpunit/php-code-coverage6.1.4304.7 kBBSD-3-Clause
prod dev
1
phpunit/php-timer2.1.4-BSD-3-Clause
prod dev
phpunit/phpunit7.5.20763.04 kBBSD-3-Clause
prod dev
1
symfony/consolev4.4.49-MIT
prod
symfony/processv4.4.44-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.