All Projects → s360digital → Phpunit Pretty Print

s360digital / Phpunit Pretty Print

Licence: mit
✅  Make your PHPUnit output beautiful

Projects that are alternatives of or similar to Phpunit Pretty Print

Phpunit Json Assert
PHPUnit assertions for JSON documents
Stars: ✭ 90 (-39.6%)
Mutual labels:  phpunit
Php Mock Phpunit
Mock built-in PHP functions (e.g. time() or rand()) in PHPUnit.
Stars: ✭ 121 (-18.79%)
Mutual labels:  phpunit
Pdt
PHP Development Tools project (PDT)
Stars: ✭ 135 (-9.4%)
Mutual labels:  phpunit
Phpunit Arraysubset Asserts
Provides assertArraySubset for use in PHPunit
Stars: ✭ 95 (-36.24%)
Mutual labels:  phpunit
Pretty Yaml
PyYAML-based module to produce pretty and readable YAML-serialized data
Stars: ✭ 110 (-26.17%)
Mutual labels:  pretty-print
Docker Compose Wordpress
An example Docker Compose setup for WordPress plugin or theme development.
Stars: ✭ 127 (-14.77%)
Mutual labels:  phpunit
Mock Webserver
Simple mock web server in PHP for unit testing.
Stars: ✭ 82 (-44.97%)
Mutual labels:  phpunit
Specify
BDD style code blocks for PHPUnit / Codeception
Stars: ✭ 141 (-5.37%)
Mutual labels:  phpunit
Swiftprettyprint
Pretty print for Swift.
Stars: ✭ 118 (-20.81%)
Mutual labels:  pretty-print
Ast Pretty Print
A pretty printer for AST-like structures
Stars: ✭ 129 (-13.42%)
Mutual labels:  pretty-print
Webpack Format Messages
Beautiful formatting for Webpack messages; ported from Create React App!
Stars: ✭ 103 (-30.87%)
Mutual labels:  pretty-print
Mockery
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Stars: ✭ 10,048 (+6643.62%)
Mutual labels:  phpunit
Verify
BDD Assertions for PHPUnit and Codeception
Stars: ✭ 127 (-14.77%)
Mutual labels:  phpunit
Astpretty
Pretty print the output of python stdlib `ast.parse`.
Stars: ✭ 93 (-37.58%)
Mutual labels:  pretty-print
Phpunit Accelerator
Listeners to speed up PHPUnit tests
Stars: ✭ 139 (-6.71%)
Mutual labels:  phpunit
Prettier Package Json
Prettier formatter for package.json files
Stars: ✭ 86 (-42.28%)
Mutual labels:  pretty-print
Php Ddd Example
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 5
Stars: ✭ 1,960 (+1215.44%)
Mutual labels:  phpunit
Binpp
🔢 Erlang Binary Pretty Printer
Stars: ✭ 148 (-0.67%)
Mutual labels:  pretty-print
Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (-5.37%)
Mutual labels:  pretty-print
Laravel Dusk Ci
Docker Test suite for Laravel Dusk in gitlab CI
Stars: ✭ 129 (-13.42%)
Mutual labels:  phpunit

phpunit-pretty-print

✅ Make your PHPUnit output beautiful

Build Status Packagist Packagist PRs Welcome psr-2

Installation

composer require sempro/phpunit-pretty-print --dev

This package requires >=7.0.0 of PHPUnit.

If you're running on 6.x, please use version 1.0.3.

If you are running on 9.x use the \Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9 class

Usage

You can specify the printer to use on the phpunit command line:

For PhpUnit < 9, use the following:

php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/

For PhpUnit >= 9, use the following:

php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/

Optionally, you can add it to your project's phpunit.xml file instead:

<phpunit
    bootstrap="bootstrap.php"
    colors="true"
    printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9">
phpunit-pretty-print

Optional

To view progress while tests are running you can set PHPUNIT_PRETTY_PRINT_PROGRESS=true as environment variable on your server or within your phpunit.xml config file.

<phpunit>
    <php>
        <env name="PHPUNIT_PRETTY_PRINT_PROGRESS" value="true" />
    </php>
</phpunit>

License

MIT © Sempro AS

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].