public function CandidatesTest::testGetCandidates in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Candidates/CandidatesTest.php \Symfony\Cmf\Component\Routing\Tests\Candidates\CandidatesTest::testGetCandidates()
File
- vendor/
symfony-cmf/ routing/ Tests/ Candidates/ CandidatesTest.php, line 38
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\CandidatesCode
public function testGetCandidates() {
$request = Request::create('/my/path.html');
$candidates = new Candidates();
$paths = $candidates
->getCandidates($request);
$this
->assertEquals(array(
'/my/path.html',
'/my/path',
'/my',
'/',
), $paths);
}