php-src/ext/fileinfo/tests/finfo_phpinfo_basic.phpt
2009-03-15 23:17:28 +00:00

22 lines
430 B
PHP

--TEST--
Test finfo extention : loading into phpinfo()
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
echo "*** Testing finfo extension : loading info phpinfo() ***\n";
ob_start();
echo phpinfo(8);
$output = ob_get_clean();
var_dump(preg_match("/fileinfo support => enabled/", $output));
?>
===DONE===
--EXPECTF--
*** Testing finfo extension : loading info phpinfo() ***
int(1)
===DONE===