setExtension() public method

Set the extension
public setExtension ( string $extension ) : Image
$extension string The file extension
return Image
Beispiel #1
0
 /**
  * @covers Imbo\Model\Image::setExtension
  * @covers Imbo\Model\Image::getExtension
  */
 public function testCanSetAndGetExtension()
 {
     $extension = 'png';
     $this->assertSame($this->image, $this->image->setExtension($extension));
     $this->assertSame($extension, $this->image->getExtension());
 }