Browse Source

Testing the \InvalidArgumentException for imageSize()

Florian Krämer 9 years ago
parent
commit
4ed813fd1f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      tests/TestCase/Validation/ValidationTest.php

+ 11 - 0
tests/TestCase/Validation/ValidationTest.php

@@ -2809,6 +2809,17 @@ class ValidationTest extends TestCase
     }
 
     /**
+     * Test ImageSize InvalidArgumentException
+     *
+     * @expectedException \InvalidArgumentException
+     * @return void
+     */
+    public function testImageSizeInvalidArgumentException()
+    {
+        $this->assertTrue(Validation::imageSize([], []));
+    }
+
+    /**
      * Test imageSize
      *
      * @return void