public function CandidatesTest::testGetCandidatesLimit in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Cmf\Component\Routing\Tests\CandidatesCode
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);
}