| Conditions | 5 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function isValidDriverClass($className) |
||
| 28 | { |
||
| 29 | if (!class_exists($className)) { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 33 | if (!is_subclass_of($className, 'Bex\\Behat\\ExtensionDriverLocator\\DriverInterface')) { |
||
| 34 | return false; |
||
| 35 | } |
||
| 36 | |||
| 37 | if (!empty($this->parent) && !is_subclass_of($className, $this->parent)) { |
||
| 38 | return false; |
||
| 39 | } |
||
| 40 | |||
| 41 | return true; |
||
| 42 | } |
||
| 43 | } |