1 | <?php |
||
23 | final class CollectionStrategyTest extends \Codeception\Test\Unit |
||
24 | { |
||
25 | /** |
||
26 | * @var HydratorInterface |
||
27 | */ |
||
28 | private $hydrator; |
||
29 | |||
30 | protected function setUp() |
||
35 | |||
36 | public function testExtract(): void |
||
60 | |||
61 | public function testHydrate(): void |
||
85 | |||
86 | /** |
||
87 | * @expectedException \Zend\Hydrator\Exception\InvalidArgumentException |
||
88 | * @expectedExceptionMessage Value needs to be a Doctrine Collection, got array instead |
||
89 | */ |
||
90 | public function testExtractWrongType(): void |
||
100 | |||
101 | /** |
||
102 | * @expectedException \Zend\Hydrator\Exception\InvalidArgumentException |
||
103 | * @expectedExceptionMessage Value needs to be an instance of |
||
104 | */ |
||
105 | public function testExtractWrongChildrenType(): void |
||
112 | |||
113 | /** |
||
114 | * @expectedException \Zend\Hydrator\Exception\InvalidArgumentException |
||
115 | * @expectedExceptionMessage Value needs to be an Iterable, got stdClass instead. |
||
116 | */ |
||
117 | public function testHydrateWrongType(): void |
||
126 | |||
127 | /** |
||
128 | * @expectedException \Zend\Hydrator\Exception\InvalidArgumentException |
||
129 | * @expectedExceptionMessage Object class name does not exist: "baz" |
||
130 | */ |
||
131 | public function testDuringConstruct(): void |
||
135 | } |
||
136 |
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.