public function ParameterBagTest::stringsWithSpacesProvider in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::stringsWithSpacesProvider()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ParameterBag/ ParameterBagTest.php, line 270
Class
Namespace
Symfony\Component\DependencyInjection\Tests\ParameterBagCode
public function stringsWithSpacesProvider() {
return array(
array(
'bar',
'%foo%',
'Parameters must be wrapped by %.',
),
array(
'% foo %',
'% foo %',
'Parameters should not have spaces.',
),
array(
'{% set my_template = "foo" %}',
'{% set my_template = "foo" %}',
'Twig-like strings are not parameters.',
),
array(
'50% is less than 100%',
'50% is less than 100%',
'Text between % signs is allowed, if there are spaces.',
),
);
}