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