Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier HAUSHERR committed Dec 12, 2014
1 parent c9ada0e commit d295793
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Thumbor/UrlTest.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,19 @@ public function testToString()
"$url"
);
}

public function testToStringWithoutCommand()
{
$url = new Url(
'http://thumbor-server:8888',
'MY_SECURE_KEY',
'my/big/image.jpg',
array()
);

$this->assertEquals(
'http://thumbor-server:8888/V2bYe7DAKqngbtv2GFxCcllDYWw=/my/big/image.jpg',
"$url"
);
}
}

0 comments on commit d295793

Please sign in to comment.