| @@ 25-28 (lines=4) @@ | ||
| 22 | } |
|
| 23 | ||
| 24 | foreach ($files as $name) { |
|
| 25 | if (!array_key_exists($name, $fixtures)) { |
|
| 26 | ||
| 27 | throw new \Exception(sprintf('Fixture "%s" unknown. "%s" expected', $name, implode('", "', array_keys($fixtures)))); |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||
| 31 | $this->loadFixtures($loader, $fixtures, $files); |
|
| @@ 31-39 (lines=9) @@ | ||
| 28 | '0' => false, |
|
| 29 | ]; |
|
| 30 | ||
| 31 | if (false === array_key_exists($str, $formats)) { |
|
| 32 | throw new \Exception( |
|
| 33 | sprintf( |
|
| 34 | '"%s" is not a supported format. Supported format : [%s].', |
|
| 35 | $str, |
|
| 36 | implode(', ', array_keys($formats)) |
|
| 37 | ) |
|
| 38 | ); |
|
| 39 | } |
|
| 40 | ||
| 41 | return $formats[$str]; |
|
| 42 | } |
|