Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function addFixture(string $fixtureName) |
||
27 | { |
||
28 | $fixturePath = sprintf('%s%s.%s', $this->fixtureSourceDir, $fixtureName, self::FIXTURES_EXT); |
||
29 | |||
30 | if (!file_exists($fixturePath)) { |
||
31 | throw new \Exception("Fixture path not found: {$fixturePath}"); |
||
32 | } |
||
33 | |||
34 | $this->fixturesPaths[] = $fixturePath; |
||
35 | } |
||
36 | |||
45 |