/** * @dataProvider getPrevLinkableData */ public function testGetPrevLinkable($expected, $path, $anchor = null, $depth = null) { $prev = $this->helper->getPrevLinkable($path, $anchor, $depth); if (null === $expected) { $this->assertNull($prev); } else { $this->assertInstanceOf('Symfony\\Cmf\\Bundle\\CoreBundle\\Tests\\Resources\\Document\\RouteAware', $prev); $this->assertEquals($expected, $prev->getId()); } }