Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | protected function instantiateFixtures(array $fixtures) |
||
31 | { |
||
32 | parent::instantiateFixtures($fixtures); |
||
33 | |||
34 | /** @var \Nelmio\Alice\Fixtures\Fixture $fixture */ |
||
35 | foreach ($fixtures as $fixture) { |
||
36 | /** @var \Nelmio\Alice\Fixtures\PropertyDefinition $property */ |
||
37 | $spec = array_map(function ($property) { |
||
38 | return $property->getValue(); |
||
39 | }, $fixture->getProperties()); |
||
40 | |||
41 | $this->cache[] = [ $spec, $this->objects->get($fixture->getName()) ]; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |