Avoid variables with short names like $a. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Avoid variables with short names like $b. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Loading history...
14
}
15
16
final class ParserTest extends \Codeception\Test\Unit
PSR1 recommends that each class should be in its own file to aid autoloaders.
Having each class in a dedicated file usually plays nice with PSR autoloaders
and is therefore a well established practice. If you use other autoloaders, you
might not want to follow this rule.
Loading history...
17
{
18
/**
19
* @param ServerRequestInterface $request
20
* @param array $expected
21
*
22
* @dataProvider getRequests
23
*/
24
public function testGetRequestBody(ServerRequestInterface $request, array $expected): void
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.