| @@ 57-66 (lines=10) @@ | ||
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| 57 | public function play($method, $args, TestListener $instance = null) |
|
| 58 | { |
|
| 59 | if ($instance instanceof TestListener) { |
|
| 60 | call_user_func_array([$instance, $method], $args); |
|
| 61 | } else { |
|
| 62 | foreach ($this->listeners as $listener) { |
|
| 63 | call_user_func_array([$listener, $method], $args); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| 68 | public function bindToResult(TestResult $result) |
|
| 69 | { |
|
| @@ 56-65 (lines=10) @@ | ||
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| 56 | public function play($method, $args, \PHPUnit_Framework_TestListener $instance = null) |
|
| 57 | { |
|
| 58 | if ($instance instanceof \PHPUnit_Framework_TestListener) { |
|
| 59 | call_user_func_array([$instance, $method], $args); |
|
| 60 | } else { |
|
| 61 | foreach ($this->listeners as $listener) { |
|
| 62 | call_user_func_array([$listener, $method], $args); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | public function bindToResult(\PHPUnit_Framework_TestResult $result) |
|
| 68 | { |
|