コード例 #1
0
 /**
  * @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());
 }
コード例 #2
0
ファイル: SomeProperty.php プロジェクト: SRMSE/cron-wikidata
 /**
  * {@inheritdoc}
  *
  * @since 1.0
  *
  * @return integer
  */
 public function getDepth()
 {
     return $this->subDescription->getDepth() + 1;
 }