diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-13 10:10:11 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 12:45:15 +0100 |
commit | 8ed27d2ce0477f40a27cdc335361b0d5654a7e09 (patch) | |
tree | de2db82b384ab3071c2c17b8e84dd560b9df993c /tests | |
parent | 3b7aec1b7d4e2e3a1ff6c1f7888189c67aa09b75 (diff) | |
download | nextcloud-server-8ed27d2ce0477f40a27cdc335361b0d5654a7e09.tar.gz nextcloud-server-8ed27d2ce0477f40a27cdc335361b0d5654a7e09.zip |
Create an interface for OC_Image and OCP\Image for the public API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/image.php | 4 |
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); } |