public function ParameterBagTest::stringsWithSpacesProvider in Service Container 7
Same name and namespace in other branches
- 7.2 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
- ParameterBagTest
Namespace
Symfony\Component\DependencyInjection\Tests\ParameterBag
Code
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.',
),
);
}