mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Update PHPUnit configuration and reorganize test files for rector rules
This commit is contained in:
parent
f251e6f100
commit
edcf78d6cc
@ -1,29 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="true" failOnWarning="true" colors="true" cacheDirectory=".phpunit.cache" requireCoverageMetadata="true" beStrictAboutCoverageMetadata="true">
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
|
|
||||||
bootstrap="tests/app/vendor/autoload.php"
|
|
||||||
cacheResultFile=".cache/phpunit/test-results-rector"
|
|
||||||
executionOrder="depends,defects"
|
|
||||||
forceCoversAnnotation="true"
|
|
||||||
beStrictAboutCoversAnnotation="true"
|
|
||||||
beStrictAboutOutputDuringTests="true"
|
|
||||||
beStrictAboutTodoAnnotatedTests="true"
|
|
||||||
convertDeprecationsToExceptions="true"
|
|
||||||
failOnRisky="true"
|
|
||||||
failOnWarning="true"
|
|
||||||
verbose="true"
|
|
||||||
colors="true"
|
|
||||||
>
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="default">
|
<testsuite name="default">
|
||||||
<directory>utils/rector/tests</directory>
|
<directory>utils/rector/tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
<source>
|
||||||
<coverage cacheDirectory=".cache/phpunit/code-coverage-rector"
|
|
||||||
processUncoveredFiles="true">
|
|
||||||
<include>
|
<include>
|
||||||
<directory suffix=".php">utils/rector/src</directory>
|
<directory suffix=".php">utils/rector/src</directory>
|
||||||
</include>
|
</include>
|
||||||
</coverage>
|
</source>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
@ -21,7 +21,7 @@ use Rector\Rector\AbstractRector;
|
|||||||
use Rector\Symfony\NodeAnalyzer\ClassAnalyzer;
|
use Rector\Symfony\NodeAnalyzer\ClassAnalyzer;
|
||||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||||
|
|
||||||
final readonly class ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector extends AbstractRector
|
final class ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector extends AbstractRector
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private ClassAnalyzer $classAnalyzer,
|
private ClassAnalyzer $classAnalyzer,
|
||||||
|
@ -28,7 +28,7 @@ class ChillBundleAddFormDefaultDataOnExportFilterAggregatorRectorTest extends Ab
|
|||||||
$this->doTestFile($file);
|
$this->doTestFile($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideData(): \Iterator
|
public static function provideData(): \Iterator
|
||||||
{
|
{
|
||||||
return self::yieldFilesFromDirectory(__DIR__.'/Fixture');
|
return self::yieldFilesFromDirectory(__DIR__.'/Fixture');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user