示例#1
0
 /**
  * Returns the height in pixels if the rendition is an image.
  *
  * @return integer the height in pixels or -1 if the height is not available or the rendition is not an image
  */
 public function getHeight()
 {
     return parent::getHeight() ?: -1;
 }
 /**
  * @depends testSetHeightSetsPropertyAsInteger
  */
 public function testGetHeightReturnsPropertyValue()
 {
     $this->renditionData->setHeight(10);
     $this->assertSame(10, $this->renditionData->getHeight());
 }