php-src/ext/fileinfo/tests/finfo_phpinfo_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

19 lines
397 B
PHP

--TEST--
Test finfo extension : loading into phpinfo()
--SKIPIF--
<?php require_once(__DIR__ . '/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));
?>
--EXPECT--
*** Testing finfo extension : loading info phpinfo() ***
int(1)