mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
18 lines
420 B
PHP
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"
|
|
}
|