Annotation of embedaddon/php/ext/fileinfo/tests/finfo_open_variation1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test finfo_open() function : variations in opening
                      3: --SKIPIF--
                      4: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: /* Prototype  : resource finfo_open([int options [, string arg]])
                      8:  * Description: Create a new fileinfo resource. 
                      9:  * Source code: ext/fileinfo/fileinfo.c
                     10:  * Alias to functions: 
                     11:  */
                     12: 
                     13: $magicFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
                     14: 
                     15: echo "*** Testing finfo_open() : variations in opening ***\n";
                     16: 
                     17: // Calling finfo_open() with different options
                     18: var_dump( finfo_open( FILEINFO_MIME | FILEINFO_SYMLINK, $magicFile ) );
                     19: //var_dump( finfo_open( FILEINFO_COMPRESS | FILEINFO_PRESERVE_ATIME, $magicFile ) );
                     20: var_dump( finfo_open( FILEINFO_DEVICES | FILEINFO_RAW, $magicFile ) );
                     21: 
                     22: ?>
                     23: ===DONE===
                     24: --EXPECTF--
                     25: *** Testing finfo_open() : variations in opening ***
                     26: resource(%d) of type (file_info)
                     27: resource(%d) of type (file_info)
                     28: ===DONE===

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