| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 24 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | public function test()  | 
            ||
| 11 |     { | 
            ||
| 12 | $name = 'user_get';  | 
            ||
| 13 |         $parameters     = array('id' => 42); | 
            ||
| 14 | $absolute = true;  | 
            ||
| 15 | $expectedResult = '/users/42';  | 
            ||
| 16 | |||
| 17 |         if (\Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH === 1) { | 
            ||
| 18 | $absolute = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL;  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 |         $symfonyUrlGeneratorProphecy = $this->prophesize('Symfony\Component\Routing\Generator\UrlGeneratorInterface'); | 
            ||
| 22 | $symfonyUrlGeneratorProphecy  | 
            ||
| 23 | ->generate($name, $parameters, $absolute)  | 
            ||
| 24 | ->willReturn($expectedResult)  | 
            ||
| 25 | ;  | 
            ||
| 26 | |||
| 27 | $urlGenerator = new SymfonyUrlGenerator($symfonyUrlGeneratorProphecy->reveal());  | 
            ||
| 28 | |||
| 29 | $this->assertSame(  | 
            ||
| 30 | $expectedResult,  | 
            ||
| 31 | $urlGenerator->generate($name, $parameters, $absolute)  | 
            ||
| 32 | );  | 
            ||
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 |