Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
40 | public function getMockResponse($endPoint) |
||
41 | { |
||
42 | $response = new Response(self::$container[$endPoint]['statusCode']); |
||
43 | $response->setBody(json_encode(self::$container[$endPoint]['response'])); |
||
44 | $mock = new MockPlugin(); |
||
45 | $mock->addResponse($response); |
||
46 | |||
47 | return $mock; |
||
48 | } |
||
49 | |||
65 |