Keep track of global success or failure and print out a summary success or failure when the

tests are complete. Makes it less likely that a test failure will be missed.
This commit is contained in:
Chris Morgan
2007-03-31 17:12:55 +00:00
committed by WineHQ
parent c494af3eb5
commit e2b15c0566
11 changed files with 136 additions and 25 deletions

View File

@@ -237,32 +237,56 @@ function test_resize_image_border()
if(!test_image_constructor())
{
echo "test_image_constructor() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_image_constructor() passed\n";
}
if(!test_image_make_thumbnail())
{
echo "test_image_make_thumbnail() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_image_make_thumbnail() passed\n";
}
if(!test_image_make_full())
{
echo "test_image_make_full() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_image_make_full() passed\n";
}
if(!test_image_output_to_file())
{
echo "test_image_output_to_file() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_image_output_to_file() passed\n";
}
if(!test_image_add_watermark())
{
echo "test_image_add_watermark() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_image_add_watermark() passed\n";
}
if(!test_resize_image_border())
{
echo "test_resize_image_border() failed!\n";
else
$bTestSuccess = false;
} else
{
echo "test_resize_image_border() passed\n";
}
?>