1--TEST--
2Test finfo_close() function : basic functionality
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7echo "*** Testing finfo_close() : basic functionality ***\n";
8
9$magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic';
10
11$finfo = finfo_open( FILEINFO_MIME, $magicFile );
12var_dump( $finfo );
13
14// Calling finfo_close() with all possible arguments
15var_dump( finfo_close($finfo) );
16
17$finfo = new finfo( FILEINFO_MIME, $magicFile );
18var_dump( $finfo );
19unset( $finfo );
20
21?>
22--EXPECTF--
23*** Testing finfo_close() : basic functionality ***
24resource(%d) of type (file_info)
25bool(true)
26object(finfo)#%d (%d) {
27}
28