phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

834
active users

Suppress deprecations

// phpunit.xml:

<phpunit bootstrap="tests/Unit/bootstrap.php"

// tests/Unit/bootstrap.php:

<?php declare(strict_types=1);

error_reporting(E_ALL & ~E_USER_DEPRECATED & ~E_DEPRECATED );

require 'vendor/autoload.php';

github.com/ghostwriter

for 10+

we need a custom printer that skips/ignores `PhpunitDeprecationTriggeredEvent`

then run this command to disable default printer.

// vendor/bin/phpunit --no-progress