| Total Complexity | 2 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 6 | class DijkstraWalkerTest extends TestCase |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @expectedException \RuntimeException |
||
| 10 | */ |
||
| 11 | public function testThrownAnExceptionWheneverPathIsRequestedBeforeBuild() |
||
| 12 | { |
||
| 13 | $this->mapper = $this |
||
|
|
|||
| 14 | ->getMockBuilder('Mado\QueryBundle\Component\Meta\DataMapper') |
||
| 15 | ->disableOriginalConstructor() |
||
| 16 | ->getMock(); |
||
| 17 | |||
| 18 | $this->dijkstra = $this |
||
| 19 | ->getMockBuilder('Mado\QueryBundle\Component\Meta\Dijkstra') |
||
| 20 | ->disableOriginalConstructor() |
||
| 21 | ->getMock(); |
||
| 22 | |||
| 23 | $this->walker = new DijkstraWalker( |
||
| 24 | $this->mapper, |
||
| 25 | $this->dijkstra |
||
| 26 | ); |
||
| 27 | |||
| 28 | $this->walker->getPath(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function testFoo() |
||
| 73 | } |
||
| 74 | } |
||
| 75 |