mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
add test for FILEINFO_EXTENSION flag
This commit is contained in:
parent
52f5b9659f
commit
99c7ad7aa8
1 changed files with 18 additions and 0 deletions
18
ext/fileinfo/tests/finfo_extension_flag.phpt
Normal file
18
ext/fileinfo/tests/finfo_extension_flag.phpt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--TEST--
|
||||||
|
Test FILEINFO_EXTENSION flag
|
||||||
|
--SKIPIF--
|
||||||
|
<?php
|
||||||
|
if (!class_exists('finfo'))
|
||||||
|
die('skip no fileinfo extension');
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$f = new finfo;
|
||||||
|
var_dump($f->file(dirname(__FILE__) . "/resources/test.jpg", FILEINFO_EXTENSION));
|
||||||
|
|
||||||
|
?>
|
||||||
|
===DONE===
|
||||||
|
--EXPECT--
|
||||||
|
string(17) "jpeg/jpg/jpe/jfif"
|
||||||
|
===DONE===
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue