All PHPUnit test cases should have @small
, @medium
or @large
annotation to enable run time limits.
The special groups [small, medium, large] provides a way to identify tests that are taking long to be executed.
Define a specific group to be used in case no group is already in use.
Allowed values: 'large'
, 'medium'
and 'small'
Default value: 'small'
Default configuration.
--- Original
+++ New
<?php
+
+/**
+ * @small
+ */
class MyTest extends TestCase {}
With configuration: ['group' => 'medium']
.
--- Original
+++ New
<?php
+
+/**
+ * @medium
+ */
class MyTest extends TestCase {}
- Fixer class: PhpCsFixer\Fixer\PhpUnit\PhpUnitSizeClassFixer
- Test class: PhpCsFixer\Tests\Fixer\PhpUnit\PhpUnitSizeClassFixerTest
The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.