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