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