mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-25 08:50:45 +02:00
Loading images without depending on filename extension, fix #85.
This commit is contained in:
37
webroot/test/test_issue85.php
Normal file
37
webroot/test/test_issue85.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
// Include config for all testcases
|
||||
include __DIR__ . "/config.php";
|
||||
|
||||
|
||||
|
||||
// The title of the test case
|
||||
$title = "Testing issue 85 - Load images in a more generic manner";
|
||||
|
||||
|
||||
|
||||
// Provide a short description of the testcase.
|
||||
$description = "Do not depend on file extension while loading images.";
|
||||
|
||||
|
||||
|
||||
// Use these images in the test
|
||||
$images = array(
|
||||
'car-gif',
|
||||
'car-jpg',
|
||||
'car-png',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// For each image, apply these testcases
|
||||
$testcase = array(
|
||||
'&nc&so',
|
||||
'&nc&sa=gif',
|
||||
'&nc&sa=jpg',
|
||||
'&nc&sa=png',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Apply testcases and present results
|
||||
include __DIR__ . "/template.php";
|
Reference in New Issue
Block a user