Sample Test: extensions.phpt

Back to "PHPT Test File Layout"

--TEST--
phpt EXTENSIONS directive with shared extensions
--DESCRIPTION--
This test covers the presence of some loaded extensions with a list of additional
extensions to be loaded when running test.
--EXTENSIONS--
curl
imagick
tokenizer
--FILE--
<?php
var_dump(extension_loaded('curl'));
var_dump(extension_loaded('imagick'));
var_dump(extension_loaded('tokenizer'));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)

Back to "PHPT Test File Layout"