php-src/ext/fileinfo/tests/precedural_finfo_in_method.phpt
2015-03-08 19:47:34 +01:00

19 lines
301 B
PHP

--TEST--
Using procedural finfo API in a method
--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"