You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use PHPUnit\TextUI\TestRunner;
use PHPUnit\Framework\TestSuite;
$suite = new TestSuite('imdbTest');
$testRunner = new TestRunner();
$result = $testRunner->run($suite, ['printer'=>'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9']);
echo $result->toString();
results in an exception:
PHPUnit\Framework\TestResult::addListener(): Argument #1 ($listener) must be of type PHPUnit\Framework\TestListener, null given, called in /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php on line 346
The text was updated successfully, but these errors were encountered:
Im using:
installed using Composer.
Not sure of what I'm doing wrong but:
results in an exception:
PHPUnit\Framework\TestResult::addListener(): Argument #1 ($listener) must be of type PHPUnit\Framework\TestListener, null given, called in /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php on line 346
The text was updated successfully, but these errors were encountered: