1--TEST--
2Using procedural finfo API in a method
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7
8class Test {
9    public function method() {
10        $finfo = finfo_open(FILEINFO_MIME);
11        var_dump(finfo_file($finfo, __FILE__));
12    }
13}
14
15$test = new Test;
16$test->method();
17
18?>
19--EXPECT--
20string(28) "text/x-php; charset=us-ascii"
21