File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
exif /
tests /
exif_tagname_error.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:54 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Test exif_tagname() function : error conditions
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
--FILE--
<?php
/* Prototype :string exif_tagname ( string $index )
* Description: Get the header name for an index
* Source code: ext/exif/exif.c
*/
echo "*** Testing exif_tagname() : error conditions ***\n";
echo "\n-- Testing exif_tagname() function with no arguments --\n";
var_dump( exif_tagname() );
echo "\n-- Testing exif_tagname() function with more than expected no. of arguments --\n";
$extra_arg = 10;
var_dump( exif_tagname(0x10E, $extra_arg) );
?>
===Done===
--EXPECTF--
*** Testing exif_tagname() : error conditions ***
-- Testing exif_tagname() function with no arguments --
Warning: exif_tagname() expects exactly 1 parameter, 0 given in %s on line %d
NULL
-- Testing exif_tagname() function with more than expected no. of arguments --
Warning: exif_tagname() expects exactly 1 parameter, 2 given in %s on line %d
NULL
===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>