Пример #1
0
 /**
  * @dataProvider instanceProvider
  *
  * @since 1.0
  *
  * @param Description $description
  */
 public function testReturnTypeOfGetSize(Description $description)
 {
     $size = $description->getSize();
     $this->assertInternalType('integer', $size);
     $this->assertGreaterThanOrEqual(0, $size);
     $this->assertEquals($size, $description->getSize());
 }
Пример #2
0
 /**
  * {@inheritdoc}
  *
  * @since 1.0
  *
  * @return integer
  */
 public function getSize()
 {
     return $this->subDescription->getSize() + 1;
 }