paratest does not honor 'displayDetailsOnPhpunitDeprecations' option from config
yurii-stickee-2023 opened this issue · 0 comments
yurii-stickee-2023 commented
Q | A |
---|---|
ParaTest version | v7.5.4 |
PHPUnit version | 11.3.6 |
PHP version | 8.3.11 |
Summary
It does not honor option from phpunit.xml
<phpunit
displayDetailsOnPhpunitDeprecations="false"
>
and still shows deprecations.
Current behavior
Still shows deprecations like
There were 2 PHPUnit test runner deprecations:
1) Metadata found in doc-comment for method Tests\DummyTest::testDummy1(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
Also, for some reason it shows deprecation message multiple times if data provider is used.
How to reproduce: command, code and error stack trace
Add dummy test with metadata instead of attribute, etc.
namespace Tests;
use PHPUnit\Framework\TestCase;
class DummyTest extends TestCase
{
public static function providesData()
{
$range = range(0, 100);
foreach ($range as $item) {
yield [$item];
}
}
/**
* @dataProvider providesData
*/
public function testDummy1($a)
{
$this->assertTrue(true);
}
}
Expected behavior
The same way PHPUnit works - do not display deprecations but leave a note as
OK, but there were issues!
Tests: 101, Assertions: 101, PHPUnit Deprecations: 1.
p.s.