Skip to content

Commit

Permalink
Testing the \InvalidArgumentException for imageSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Sep 19, 2016
1 parent 760ff6d commit 4ed813f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TestCase/Validation/ValidationTest.php
Expand Up @@ -2808,6 +2808,17 @@ public function testNumElements()
$this->assertFalse(Validation::numElements(true, '==', 0));
}

/**
* Test ImageSize InvalidArgumentException
*
* @expectedException \InvalidArgumentException
* @return void
*/
public function testImageSizeInvalidArgumentException()
{
$this->assertTrue(Validation::imageSize([], []));
}

/**
* Test imageSize
*
Expand Down

0 comments on commit 4ed813f

Please sign in to comment.