| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct($cache = null, array $providers = array()) |
||
| 19 | 1 | { |
|
| 20 | $this->parser = new Parser(array()); |
||
| 21 | 1 | ||
| 22 | parent::__construct($cache, $providers); |
||
| 23 | 1 | ||
| 24 | 1 | $reflection = new ReflectionClass(SymfonyExpressionLanguage::class); |
|
| 25 | 1 | ||
| 26 | 1 | $prop = $reflection->getProperty('lexer'); |
|
| 27 | $prop->setAccessible(true); |
||
| 28 | 1 | $prop->setValue($this, new Lexer()); |
|
| 29 | 1 | $prop->setAccessible(false); |
|
| 30 | 1 | ||
| 31 | 1 | $prop = $reflection->getProperty('parser'); |
|
| 32 | 1 | $prop->setAccessible(true); |
|
| 33 | $prop->setValue($this, $this->parser); |
||
| 34 | $prop->setAccessible(false); |
||
| 35 | } |
||
| 36 | |||
| 48 |