mirror of
https://github.com/mosbth/cimage.git
synced 2025-01-29 09:47:37 +01:00
44 lines
729 B
Plaintext
44 lines
729 B
Plaintext
|
<?php
|
||
|
// Include config for all testcases
|
||
|
include __DIR__ . "/config.php";
|
||
|
|
||
|
|
||
|
|
||
|
// The title of the test case
|
||
|
$angle = 45;
|
||
|
|
||
|
$title = "Testing img for issue 36 - rotateBefore, rotateAfter <?=$angle?>";
|
||
|
|
||
|
|
||
|
|
||
|
// Provide a short description of the testcase.
|
||
|
$description = "";
|
||
|
|
||
|
|
||
|
|
||
|
// Use these images in the test
|
||
|
$images = array(
|
||
|
'kodim08.png',
|
||
|
'kodim04.png',
|
||
|
);
|
||
|
|
||
|
|
||
|
|
||
|
// For each image, apply these testcases
|
||
|
$testcase = array(
|
||
|
"&rb=$angle&nc",
|
||
|
"&rb=$angle&nc&w=200",
|
||
|
"&rb=$angle&nc&h=200",
|
||
|
"&rb=$angle&nc&w=200&h=200&cf",
|
||
|
"&ra=$angle&nc",
|
||
|
"&ra=$angle&nc&w=200",
|
||
|
"&ra=$angle&nc&h=200",
|
||
|
"&ra=$angle&nc&w=200&h=200&cf",
|
||
|
);
|
||
|
|
||
|
|
||
|
|
||
|
// Apply testcases and present results
|
||
|
include __DIR__ . "/template.php";
|
||
|
|