| Conditions | 3 |
| Paths | 3 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | |||
| 34 | if (!static::$container->has('test.client')) { |
||
|
|
|||
| 35 | throw new \RuntimeException('The Symfony test client is not enabled.'); |
||
| 36 | } |
||
| 37 | |||
| 38 | $browser = new $class(static::$container->get('test.client')); |
||
| 39 | } |
||
| 40 | |||
| 41 | BrowserExtension::registerBrowser($browser); |
||
| 42 | |||
| 43 | return $browser |
||
| 44 | ->setSourceDir($_SERVER['BROWSER_SOURCE_DIR'] ?? './var/browser/source') |
||
| 45 | ; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |