Conditions | 2 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public static function create($applicationConfigPath) |
||
23 | { |
||
24 | if (!file_exists($applicationConfigPath)) { |
||
25 | throw new RuntimeException(sprintf("Invalid path to ZF application config: '%s'", $applicationConfigPath)); |
||
26 | } |
||
27 | |||
28 | $applicationConfig = require_once $applicationConfigPath; |
||
29 | |||
30 | $testCase = new HttpControllerTestCase(); |
||
31 | $testCase->reset(); |
||
32 | $testCase->setApplicationConfig($applicationConfig); |
||
33 | |||
34 | |||
35 | return $testCase; |
||
36 | } |
||
37 | } |