You are here

public function CandidatesTest::testGetCandidates 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::testGetCandidates()

File

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

Class

CandidatesTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Candidates

Code

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);
}