You are here

public function RoutableFragmentRendererTest::getGenerateFragmentUriData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\RoutableFragmentRendererTest::getGenerateFragmentUriData()

File

vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php, line 35

Class

RoutableFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function getGenerateFragmentUriData() {
  return array(
    array(
      '/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(), array()),
    ),
    array(
      '/_fragment?_path=_format%3Dxml%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(
        '_format' => 'xml',
      ), array()),
    ),
    array(
      '/_fragment?_path=foo%3Dfoo%26_format%3Djson%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(
        'foo' => 'foo',
        '_format' => 'json',
      ), array()),
    ),
    array(
      '/_fragment?bar=bar&_path=foo%3Dfoo%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(
        'foo' => 'foo',
      ), array(
        'bar' => 'bar',
      )),
    ),
    array(
      '/_fragment?foo=foo&_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(), array(
        'foo' => 'foo',
      )),
    ),
    array(
      '/_fragment?_path=foo%255B0%255D%3Dfoo%26foo%255B1%255D%3Dbar%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller',
      new ControllerReference('controller', array(
        'foo' => array(
          'foo',
          'bar',
        ),
      ), array()),
    ),
  );
}