You are here

public function CandidatesTest::testGetCandidatesLimit in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Candidates/CandidatesTest.php \Symfony\Cmf\Component\Routing\Tests\Candidates\CandidatesTest::testGetCandidatesLimit()

File

vendor/symfony-cmf/routing/Tests/Candidates/CandidatesTest.php, line 89

Class

CandidatesTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Candidates

Code

public function testGetCandidatesLimit() {
  $candidates = new Candidates(array(), 1);
  $request = Request::create('/my/path/is/deep.html');
  $paths = $candidates
    ->getCandidates($request);
  $this
    ->assertEquals(array(
    '/my/path/is/deep.html',
    '/my/path/is/deep',
  ), $paths);
}