mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-22 15:42:54 +02:00
adding phpdoc fix #48
This commit is contained in:
38
docs/api/files/webroot%2Ftest%2Ftest_issue40.php.txt
Normal file
38
docs/api/files/webroot%2Ftest%2Ftest_issue40.php.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// Include config for all testcases
|
||||
include __DIR__ . "/config.php";
|
||||
|
||||
|
||||
|
||||
// The title of the test case
|
||||
$title = "Testing issue 40 - no ratio";
|
||||
|
||||
|
||||
|
||||
// Provide a short description of the testcase.
|
||||
$description = "Showing off how to resize image with and without ratio.";
|
||||
|
||||
|
||||
|
||||
// Use these images in the test
|
||||
$images = array(
|
||||
'issue40/source.jpg',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// For each image, apply these testcases
|
||||
$testcase = array(
|
||||
'&nc&width=652&height=466',
|
||||
'&nc&width=652&height=466&no-ratio',
|
||||
'&nc&width=652&height=466&crop-to-fit',
|
||||
'&nc&width=652&aspect-ratio=1.4',
|
||||
'&nc&width=652&aspect-ratio=1.4&no-ratio',
|
||||
'&nc&width=652&aspect-ratio=1.4&crop-to-fit',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Apply testcases and present results
|
||||
include __DIR__ . "/template.php";
|
||||
|
Reference in New Issue
Block a user