php-src/ext/reflection/tests/ReflectionClass_getExtension_basic.phpt

18 lines
420 B
PHP

--TEST--
ReflectionClass::getExtension() method - basic test for getExtension() method
--SKIPIF--
<?php extension_loaded('dom') or die('skip - dom extension not loaded'); ?>
--CREDITS--
Rein Velt <rein@velt.org>
#testFest Roosendaal 2008-05-10
--FILE--
<?php
$rc=new reflectionClass('domDocument');
var_dump($rc->getExtension()) ;
?>
--EXPECTF--
object(ReflectionExtension)#%d (1) {
["name"]=>
string(3) "dom"
}