Skip to content

Commit a07134c

Browse files
author
Mitch
committed
Test for new object with no file
1 parent f42a502 commit a07134c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public function testInvalidString() {
5656
}
5757

5858
/**
59-
* @expectedException PHPUnit_Framework_Error
60-
* @expectedExceptionMessage Filename cannot be empty
59+
* @expectedException Exception
60+
* @expectedExceptionMessage No image provided
6161
*/
6262
public function testLoadNoFile() {
63-
ImageResize::createFromFile(null);
63+
new ImageResize(null);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)