You are here

public function RedirectableUrlMatcherTest::testNoSchemaRedirectIfOnOfMultipleSchemesMatches in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Matcher/RedirectableUrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\RedirectableUrlMatcherTest::testNoSchemaRedirectIfOnOfMultipleSchemesMatches()

File

vendor/symfony/routing/Tests/Matcher/RedirectableUrlMatcherTest.php, line 59

Class

RedirectableUrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testNoSchemaRedirectIfOnOfMultipleSchemesMatches() {
  $coll = new RouteCollection();
  $coll
    ->add('foo', new Route('/foo', array(), array(), array(), '', array(
    'https',
    'http',
  )));
  $matcher = $this
    ->getMockForAbstractClass('Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcher', array(
    $coll,
    new RequestContext(),
  ));
  $matcher
    ->expects($this
    ->never())
    ->method('redirect');
  $matcher
    ->match('/foo');
}