mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-19 06:11:27 +02:00
adding phpdoc fix #48
This commit is contained in:
43
docs/api/files/webroot%2Ftest%2Ftest_option-save-as.php.txt
Normal file
43
docs/api/files/webroot%2Ftest%2Ftest_option-save-as.php.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
// Include config for all testcases
|
||||
include __DIR__ . "/config.php";
|
||||
|
||||
|
||||
|
||||
// The title of the test case
|
||||
$title = "Testing option save-as - save image to another format";
|
||||
|
||||
|
||||
|
||||
// Provide a short description of the testcase.
|
||||
$description = "";
|
||||
|
||||
|
||||
|
||||
// Use these images in the test
|
||||
$images = array(
|
||||
'car.png',
|
||||
'car.gif',
|
||||
'car.jpg',
|
||||
'ball24.png',
|
||||
'wider.jpg',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// For each image, apply these testcases
|
||||
$nc = "&nc"; //null; //&nc';
|
||||
$testcase = array(
|
||||
$nc . '&w=300',
|
||||
$nc . '&w=300&sa=jpg',
|
||||
$nc . '&w=300&sa=png',
|
||||
$nc . '&w=300&sa=gif',
|
||||
$nc . '&w=300&palette',
|
||||
$nc . '&w=300&sa=png&palette',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Apply testcases and present results
|
||||
include __DIR__ . "/template.php";
|
||||
|
Reference in New Issue
Block a user