Skip to content

Commit

Permalink
Testing when no constraints are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Feb 9, 2015
1 parent b8c5a7a commit 93770d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TestGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public function setUp() {
));
}

public function testPasthru() {
$this->croppa->generate('/uploads/00/file-_x_.jpg');
$size = getimagesize(vfsStream::url('dir/uploads/00/file-_x_.jpg'));
$this->assertEquals('500x400', $size[0].'x'.$size[1]);
}

public function testWidthConstraint() {
$this->croppa->generate('/uploads/00/file-200x_.jpg');
$size = getimagesize(vfsStream::url('dir/uploads/00/file-200x_.jpg'));
Expand Down

0 comments on commit 93770d2

Please sign in to comment.