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.
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.
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...
22
}
23
24
final class NullDecoratorTest 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...
25
{
26
/**
27
* @var HydratorInterface
28
*/
29
private $hydrator;
30
31
protected function setUp()
32
{
33
$this->hydrator = new ObjectProperty();
34
$this->hydrator->addStrategy('b', new DecoratedStrategy(
35
new NestedEntityStrategy(new ObjectProperty()),
36
new NullDecorator()
37
));
38
}
39
40
/**
41
* @param A $a
42
* @param array $expected
43
*
44
* @dataProvider hydratorsDataProvider
45
*/
46
public function testExtract(A $a, 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.