Skip to content

Commit 9fe563f

Browse files
authored
Add test for convert()
1 parent 788858b commit 9fe563f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/system/Images/GDHandlerTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,13 @@ public function testImageSave()
332332
}
333333
}
334334

335+
public function testImageConvert()
336+
{
337+
$this->handler->withFile($this->origin . 'ci-logo.jpg');
338+
$this->handler->getResource(); // make sure resource is loaded
339+
$this->handler->convert(IMAGETYPE_PNG);
340+
$this->handler->save($this->start . 'work/ci-logo.png');
341+
$$this->assertEquals(exif_imagetype($this->start . 'work/ci-logo.png'), IMAGETYPE_PNG);
342+
}
343+
335344
}

0 commit comments

Comments
 (0)