/** * @dataProvider instanceProvider * * @since 1.0 * * @param Description $description */ public function testReturnTypeOfGetDepth(Description $description) { $depth = $description->getDepth(); $this->assertInternalType('integer', $depth); $this->assertGreaterThanOrEqual(0, $depth); $this->assertEquals($depth, $description->getDepth()); }
/** * {@inheritdoc} * * @since 1.0 * * @return integer */ public function getDepth() { return $this->subDescription->getDepth() + 1; }