Skip to content

Commit

Permalink
fix test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanilla Hsu committed Dec 10, 2011
1 parent 3ad8566 commit 5147325
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/qr_save.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,24 @@ qr_save($q, '/tmp/test.png');
$size = filesize('/tmp/test.png');
if ($size == 237) {
echo "PASS\n";
} else {
echo "FAIL\n";
}

qr_save($q, '/tmp/test2.png', 4, 5);
$size = filesize('/tmp/test2.png');
if ($size == 237) {
if ($size == 211) {
echo "PASS\n";
} else {
echo "FAIL\n";
}

qr_save($q, 4, 5, '/tmp/test3.png');
qr_save($q, 6, 7, '/tmp/test3.png');
$size = filesize('/tmp/test3.png');
if ($size == 237) {
if ($size == 275) {
echo "PASS\n";
} else {
echo "FAIL\n";
}
?>
--CLEAN--
Expand All @@ -54,3 +60,5 @@ Warning: qr_save(): should use type long as argument 2 when pass 3 arguments in
iVBORw0KGgoAAAANSUhEUgAAAFcAAABXAQAAAABZs+TBAAAAtElEQVQ4jc3TsQ3CMBAF0EMU6WABS7fGdVnJWSCGCVjJndeIxAJOl+KU40JBKKyfEq56xS++v2Sy/egvXIlSCUQMPJsmC8mgcxiKxu7Anj/0KEc2HUk/HZr2/sPXW5r2m8u+SdO1o1PxKZBXYcvPx8LAVjQt04WQ53K+yfm+GPAqOnheGNivdjr2yO8duAqy7xl7r2fIOcQ+RGHstO1g2FGma2Fk0yH7FAbs/bd8ZuBf/bW2XweNtloIoiLrAAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8AQAAAACDZekTAAAAmklEQVRIie3UMQ7FIAwDUN/A97+lb8CPw1/KhtOxCAnxhog4arGOhQ9eAAFYUh8x7L2PFIQq2ccIVr9sCMQMvMGj20uodHWmfglejvgx/UuoplwV/a4QKpxSkgs5yOUIIofKxrcqzRgWKU+bRA5+m+OhYvgPuzJCDu6PHVIO/gjZMY1gD5sjqDso5bD/BJ5UDg65iyKG5/pgDD+c+VFPQmXXuAAAAABJRU5ErkJggg==
PASS
PASS
PASS

0 comments on commit 5147325

Please sign in to comment.