| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | public function __construct(array $observers = [])  | 
            ||
| 10 |     { | 
            ||
| 11 |         foreach ($observers as $observer) { | 
            ||
| 12 |             if ($observer instanceof ErrorObserver) { | 
            ||
| 13 | continue;  | 
            ||
| 14 | }  | 
            ||
| 15 | |||
| 16 | $message = 'Can only be constructed with implementations of RMiller\BehatSpec\Extension\ErrorExtension\Observer\ErrorObserver';  | 
            ||
| 17 | throw new \InvalidArgumentException($message);  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 | $this->observers = $observers;  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 28 |