| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function execute() |
||
| 36 | { |
||
| 37 | if (is_object($this->class)) { |
||
| 38 | $ref = new \ReflectionMethod($this->class, $this->method); |
||
| 39 | $this->returned = $ref->invokeArgs($this->class, $this->args); |
||
| 40 | } else { |
||
| 41 | $this->returned = call_user_func_array([$this->class, $this->method], $this->args); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $this->returned == $this->expectedReturn; |
||
| 45 | } |
||
| 46 | |||
| 66 | } |