Skip to content

Commit 2abab22

Browse files
committed
minor #18499 [DependencyInjection] Add coverage for invalid Expression in exportParameters (JhonnyL)
This PR was merged into the 2.7 branch. Discussion ---------- [DependencyInjection] Add coverage for invalid Expression in exportParameters | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 1931b14 [DependencyInjection] Add coverage for invalid Expression in exportParameters
2 parents eb9e4fa + 208cc1b commit 2abab22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/Dumper/PhpDumperTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\DependencyInjection\Reference;
1818
use Symfony\Component\DependencyInjection\Definition;
1919
use Symfony\Component\DependencyInjection\Variable;
20+
use Symfony\Component\ExpressionLanguage\Expression;
2021

2122
class PhpDumperTest extends \PHPUnit_Framework_TestCase
2223
{
@@ -99,6 +100,7 @@ public function provideInvalidParameters()
99100
{
100101
return array(
101102
array(array('foo' => new Definition('stdClass'))),
103+
array(array('foo' => new Expression('service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")'))),
102104
array(array('foo' => new Reference('foo'))),
103105
array(array('foo' => new Variable('foo'))),
104106
);

0 commit comments

Comments
 (0)