summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fileinfo/tests/finfo_extension_flag.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/fileinfo/tests/finfo_extension_flag.phpt b/ext/fileinfo/tests/finfo_extension_flag.phpt
new file mode 100644
index 0000000000..fdecef31ee
--- /dev/null
+++ b/ext/fileinfo/tests/finfo_extension_flag.phpt
@@ -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===
+