File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / exif / tests / exif_imagetype_basic.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, 5 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

    1: --TEST--
    2: Check for exif_imagetype default behaviour
    3: --SKIPIF--
    4: <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
    5: --INI--
    6: output_handler=
    7: zlib.output_compression=0
    8: --FILE--
    9: <?php
   10: 
   11: /* Prototype  : int exif_imagetype  ( string $filename  )
   12:  * Description: Determine the type of an image
   13:  * Source code: ext/exif/exif.c
   14: */
   15: echo "*** Testing exif_imagetype() : basic functionality ***\n";
   16: 
   17: var_dump(exif_imagetype(dirname(__FILE__).'/test2.jpg'));
   18: ?>
   19: ===Done===
   20: --EXPECT--
   21: *** Testing exif_imagetype() : basic functionality ***
   22: int(2)
   23: ===Done===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>