sebastian               Sun May 11 04:57:27 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/reflection/tests       
                                        
ReflectionFunction_getExtensionName.phpt 
                                        ReflectionFunction_getExtension.phpt 
  Log:
  MFH: Add tests for ReflectionFunction::getExtension*().
  

http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt?view=markup&rev=1.1
Index: php-src/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt
+++ php-src/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt
--TEST--
ReflectionFunction::getExtensionName()
--FILE--
<?php
function foo() {}

$function = new ReflectionFunction('sort');
var_dump($function->getExtensionName());

$function = new ReflectionFunction('foo');
var_dump($function->getExtensionName());
?>
--EXPECT--
string(8) "standard"
bool(false)


http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/ReflectionFunction_getExtension.phpt?view=markup&rev=1.1
Index: php-src/ext/reflection/tests/ReflectionFunction_getExtension.phpt
+++ php-src/ext/reflection/tests/ReflectionFunction_getExtension.phpt
--TEST--
ReflectionFunction::getExtension()
--FILE--
<?php
function foo () {}

$function = new ReflectionFunction('sort');
var_dump($function->getExtension());

$function = new ReflectionFunction('foo');
var_dump($function->getExtension());
?>
--EXPECTF--
object(ReflectionExtension)#%i (1) {
  ["name"]=>
  string(8) "standard"
}
NULL




-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to