You are here

public function ParameterBagTest::stringsWithSpacesProvider in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::stringsWithSpacesProvider()

File

vendor/symfony/dependency-injection/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.',
    ),
  );
}