summaryrefslogtreecommitdiffstats
path: root/tests/lib/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/image.php')
-rw-r--r--tests/lib/image.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/image.php b/tests/lib/image.php
index 0ee517100ad..a22e210947b 100644
--- a/tests/lib/image.php
+++ b/tests/lib/image.php
@@ -31,20 +31,24 @@ class Test_Image extends \Test\TestCase {
public function testConstructDestruct() {
$img = new \OC_Image(OC::$SERVERROOT.'/tests/data/testimage.png');
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$imgcreate = imagecreatefromjpeg(OC::$SERVERROOT.'/tests/data/testimage.jpg');
$img = new \OC_Image($imgcreate);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$base64 = base64_encode(file_get_contents(OC::$SERVERROOT.'/tests/data/testimage.gif'));
$img = new \OC_Image($base64);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
$img = new \OC_Image(null);
$this->assertInstanceOf('\OC_Image', $img);
+ $this->assertInstanceOf('\OCP\IImage', $img);
unset($img);
}