Download the PHP package ockcyp/covers-validator without Composer

On this page you can find all versions of the php package ockcyp/covers-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package covers-validator

covers-validator

CI Coverage Status Scrutinizer Code Quality License Total Downloads

PHPUnit @covers tags validator

Why?

PHPUnit fails to generate a coverage report when tests have invalid @covers tags.

This tool allows you to determine the tests that have invalid @covers tags without you needing to run the coverage.

Usually coverage reports are run less often than the tests as they take a long time to run. This tool validates your @covers tags quicker than you run your tests.

See: phpunit/issues/1758
Also see: phpunit/issues/1791

Abandoned alternative: dunkelfrosch/phpcoverfish

Getting Started

Prerequisites

Installation

Composer

Recommended way of installing covers-validator is via Composer.

Phar

Download the covers-validator.phar asset from the latest release or any other release from the releases.

Then run using the following:

[!NOTE] The usage documentation assumes you installed covers-validator using Composer, so please replace any reference to "vendor/bin/covers-validator" with "php covers-validator.phar".

[!NOTE] Only releases since v0.3.0 can be used as a phar.

Older versions

Latest version of covers-validator supports PHP 7.1+ and PHPUnit 7+. Please use version 0.5 for older PHP and PHPUnit versions.

PHPUnit version Covers-validator version
< 6.0 0.5.x
>= 6.0 1.x

Usage

Run the validator using the following:

[!TIP] The command returns exit code 1 when any of the covers tags are invalid. Use this to fail your builds.

Override configuration file

Give optional -c argument to load a particular PHPUnit configuration file:

Override PHPUnit bootstrap

Override the bootstrap value specified in PHPUnit configuration:

Disable output

Disable output by providing the -q argument

Adjust the verbosity:

Verbosity Shows
-v Valid tests
-vv Loaded configuration file
-vvv Test name before validation is done

Sample output

Normal verbosity

Maximum verbosity (debug)

Tests

To run the tests, execute:

Versioning

We use Semantic Versioning for versioning. For the versions available, see the releases or the CHANGELOG.md file.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Acknowledgments


All versions of covers-validator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
phpunit/phpunit Version >=7.0,<10.0
symfony/console Version >=2.7,<7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ockcyp/covers-validator contains the following files

Loading the files please wait ....