diff options
author | Anatol Belski <ab@php.net> | 2016-11-24 18:05:11 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-11-24 18:05:11 +0100 |
commit | 99c7ad7aa8af59bde9285470c53f26f48a027db0 (patch) | |
tree | 53832c71687109244ecf21e7bbc62705ba3bb542 | |
parent | 52f5b9659fa27936d8271c4d7a6874269fbf9534 (diff) | |
download | php-git-99c7ad7aa8af59bde9285470c53f26f48a027db0.tar.gz |
add test for FILEINFO_EXTENSION flag
-rw-r--r-- | ext/fileinfo/tests/finfo_extension_flag.phpt | 18 |
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=== + |