| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | private function checkResponse() |
||
| 27 | { |
||
| 28 | if (! $this->last->http) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | $method = $this->last->http['method']; |
||
| 32 | |||
| 33 | $response = $this->last->app->$method($this->last->http['url'], $this->last->http['data']); |
||
| 34 | |||
| 35 | foreach ($this->last->assertion as $assertion) { |
||
| 36 | $type = $assertion['type']; |
||
| 37 | $response->$type($assertion['value']); |
||
| 38 | } |
||
| 54 | } |