1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-31 21:40:12 +02:00

adding phpdoc fix #48

This commit is contained in:
Mikael Roos
2015-03-04 11:00:36 +01:00
parent 1de4830c96
commit e9037bc0ed
146 changed files with 42719 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
// Include config for all testcases
include __DIR__ . "/config.php";
// The title of the test case
$title = "Testing issue 38 - fill to fit, together with background colors";
// Provide a short description of the testcase.
$description = "The issue was to implement fill-to-fit, but it needs some flexibility in how to choose the background color and it also affects rotation of the image (the background color does). So this testcase is both for fill-to-fit and for background color (thereby including a test using rotate).";
// Use these images in the test
$images = array(
'kodim04.png',
'apple_trans.gif',
'circle_trans.png',
);
// For each image, apply these testcases
$cache = "&nc"; // ""; // "&nc"
$testcase = array(
"$cache&w=300&h=300&fill-to-fit",
"$cache&w=200&h=400&fill-to-fit",
"$cache&w=300&h=300&fill-to-fit=ff0000",
"$cache&w=200&h=400&fill-to-fit=ff0000",
"$cache&w=300&h=300&fill-to-fit=ff00003f",
"$cache&w=200&h=400&fill-to-fit=ff00003f",
"$cache&w=200&h=400&fill-to-fit&bgc=ff0000",
"$cache&w=300&h=300&fill-to-fit&bgc=ff00003f",
"$cache&w=300&h=300&ra=45",
"$cache&w=300&h=300&ra=45&bgc=ff0000",
"$cache&w=300&h=300&ra=45&bgc=ff00003f",
);
// Applu testcases and present results
include __DIR__ . "/template.php";