doyolabs /
behat-code-coverage
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Doyo\Behat\Coverage\Bridge\Symfony; |
||
| 5 | |||
| 6 | 2 | if(class_exists(' \Symfony\Contracts\EventDispatcher\Event')){ |
|
| 7 | class BaseEvent extends \Symfony\Contracts\EventDispatcher\Event |
||
| 8 | { |
||
| 9 | public function getVersion() |
||
| 10 | { |
||
| 11 | return '4.3'; |
||
| 12 | } |
||
| 13 | } |
||
| 14 | }else{ |
||
| 15 | class BaseEvent extends \Symfony\Component\EventDispatcher\Event |
||
|
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
| 16 | { |
||
| 17 | public function getVersion() |
||
| 18 | { |
||
| 19 | return '4.3'; |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | class Event extends BaseEvent |
||
| 25 | { |
||
| 26 | |||
| 27 | } |
||
| 28 |