A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/edsonmedina/php_testability below:

edsonmedina/php_testability: Analyses and reports testability issues of a php codebase

Analyses and produces a report with testability issues of a php codebase.

PHP_Testability requires at least PHP 7.0 to run.

Add edsonmedina/php_testability as a dependency to your project's composer.json file if you use Composer to manage the dependencies of your project.

{
    "require-dev": {
        "edsonmedina/php_testability": "dev-master"
    }
}

And run composer update.

Or alternatively, just run:

composer require edsonmedina/php_testability "dev-master"

Analyse the current directory and generate an HTML report into report/

vendor/bin/testability . -o report

Exclude some directories

vendor/bin/testability . -x vendor,tmp,upload,config -o report

Check all the available options.

vendor/bin/testability --help

Open report/index.html on your browser. You shoule see something like this:

If you click on a file with issues, it'll show you a code browser and will highlight the lines with issues.

These are issues that hinder testability, such as:

Kudos to the brilliant PHP-Parser (by nikic) on which PHP_Testability relies heavily.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4