/** * Returns the size of the rendition in bytes if available. * * @return integer the size of the rendition in bytes or -1 if the size is not available */ public function getLength() { return parent::getLength() ?: -1; }
/** * @depends testSetLengthSetsPropertyAsInteger */ public function testGetLengthReturnsPropertyValue() { $this->renditionData->setLength(10); $this->assertSame(10, $this->renditionData->getLength()); }