==================================== Rule ``php_unit_data_provider_name`` ==================================== Data provider names must match the name of the test. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Fixer could be risky if one is calling data provider by name as function. Configuration ------------- ``prefix`` ~~~~~~~~~~ Prefix that replaces "test". Allowed types: ``string`` Default value: ``'provide'`` ``suffix`` ~~~~~~~~~~ Suffix to be present at the end. Allowed types: ``string`` Default value: ``'Cases'`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New 'data_', 'suffix' => '']``. .. code-block:: diff --- Original +++ New 'provides', 'suffix' => 'Data']``. .. code-block:: diff --- Original +++ New `_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\PhpUnit\\PhpUnitDataProviderNameFixer <./../../../src/Fixer/PhpUnit/PhpUnitDataProviderNameFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\PhpUnit\\PhpUnitDataProviderNameFixerTest <./../../../tests/Fixer/PhpUnit/PhpUnitDataProviderNameFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.