| Conditions | 5 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 12 | public function preRequest($req, $session, $model) { |
||
| 13 | if(class_exists('TestSessionEnvironment')) { |
||
| 14 | // Set in Mysite\Test\Behaviour\FeatureContext |
||
| 15 | $testState = Injector::inst()->get('TestSessionEnvironment')->getState(); |
||
| 16 | |||
| 17 | if($testState && isset($testState->fakeDatabasePath) && $testState->fakeDatabasePath) { |
||
| 18 | $fakeDb = new FakeDatabase($testState->fakeDatabasePath); |
||
| 19 | Injector::inst()->get('FakeManager', false, array($fakeDb)); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 26 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.