summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2015-03-13 17:23:02 +0100
committerGeorg Ehrke <developer@georgehrke.com>2015-03-16 12:41:53 +0100
commitbc5ca788162ea66bc90d0fbe0bcaacd02d6617b9 (patch)
treea964d4c8178eb6f3738e9c0897b904a42cddc58e /tests
parent92a024b2fd354434ee7d72ac0d0e465b7c93571f (diff)
downloadnextcloud-server-bc5ca788162ea66bc90d0fbe0bcaacd02d6617b9.tar.gz
nextcloud-server-bc5ca788162ea66bc90d0fbe0bcaacd02d6617b9.zip
validate resource's integrity before using it
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/image.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/image.php b/tests/lib/image.php
index e0009b9710e..0ee517100ad 100644
--- a/tests/lib/image.php
+++ b/tests/lib/image.php
@@ -144,6 +144,11 @@ class Test_Image extends \Test\TestCase {
$this->assertEquals($expected, $img->data());
}
+ public function testDataNoResource() {
+ $img = new \OC_Image();
+ $this->assertNull($img->data());
+ }
+
/**
* @depends testData
*/