lstrojny Thu Jun 12 20:55:54 2008 UTC
Modified files:
/php-src/ext/reflection/tests reflectionExtension_export_basic.phpt
reflectionExtension_getName_basic.phpt
reflectionExtension_getVersion_basic.phpt
Log:
Testfest: ReflectionExtension tests by Gerrit te Sligte and Leon Luijkx
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/reflectionExtension_export_basic.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/reflection/tests/reflectionExtension_export_basic.phpt
diff -u /dev/null
php-src/ext/reflection/tests/reflectionExtension_export_basic.phpt:1.2
--- /dev/null Thu Jun 12 20:55:54 2008
+++ php-src/ext/reflection/tests/reflectionExtension_export_basic.phpt Thu Jun
12 20:55:54 2008
@@ -0,0 +1,22 @@
+--TEST--
+ReflectionExtension::export()
+--CREDITS--
+Gerrit "Remi" te Sligte <[EMAIL PROTECTED]>
+Leon Luijkx <[EMAIL PROTECTED]>
+--FILE--
+<?php
+ob_start();
+ReflectionExtension::export("reflection", true);
+$test = ob_get_clean();
+var_dump(empty($test));
+unset($test);
+ob_start();
+ReflectionExtension::export("reflection", false);
+$test = ob_get_clean();
+var_dump(empty($test));
+?>
+==DONE==
+--EXPECT--
+bool(true)
+bool(false)
+==DONE==
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/reflectionExtension_getName_basic.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/reflection/tests/reflectionExtension_getName_basic.phpt
diff -u /dev/null
php-src/ext/reflection/tests/reflectionExtension_getName_basic.phpt:1.2
--- /dev/null Thu Jun 12 20:55:54 2008
+++ php-src/ext/reflection/tests/reflectionExtension_getName_basic.phpt Thu Jun
12 20:55:54 2008
@@ -0,0 +1,14 @@
+--TEST--
+ReflectionExtension::getName()
+--CREDITS--
+Gerrit "Remi" te Sligte <[EMAIL PROTECTED]>
+Leon Luijkx <[EMAIL PROTECTED]>
+--FILE--
+<?php
+$obj = new ReflectionExtension('reflection');
+var_dump($obj->getName());
+?>
+==DONE==
+--EXPECTF--
+%s(10) "Reflection"
+==DONE==
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/reflectionExtension_getVersion_basic.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/reflection/tests/reflectionExtension_getVersion_basic.phpt
diff -u /dev/null
php-src/ext/reflection/tests/reflectionExtension_getVersion_basic.phpt:1.2
--- /dev/null Thu Jun 12 20:55:54 2008
+++ php-src/ext/reflection/tests/reflectionExtension_getVersion_basic.phpt
Thu Jun 12 20:55:54 2008
@@ -0,0 +1,16 @@
+--TEST--
+ReflectionExtension::getVersion()
+--CREDITS--
+Gerrit "Remi" te Sligte <[EMAIL PROTECTED]>
+Leon Luijkx <[EMAIL PROTECTED]>
+--FILE--
+<?php
+$obj = new ReflectionExtension('reflection');
+$var = $obj->getVersion() ? $obj->getVersion() : null;
+$test = floatval($var) == $var ? true : false;
+var_dump($test);
+?>
+==DONE==
+--EXPECT--
+bool(true)
+==DONE==
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php