Example #1
0
 /**
  * Tests RouteCompiler::getFit().
  *
  * @param string $path
  *   A path whose fit will be calculated in the test.
  * @param int $expected
  *   The expected fit returned by RouteCompiler::getFit()
  *
  * @dataProvider providerTestGetFit
  */
 public function testGetFit($path, $expected)
 {
     $route_compiler = new RouteCompiler();
     $result = $route_compiler->getFit($path);
     $this->assertSame($expected, $result);
 }