summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests')
-rwxr-xr-xext/reflection/tests/bug26640.phpt25
-rwxr-xr-xext/reflection/tests/bug26695.phpt25
-rwxr-xr-xext/reflection/tests/static_properties_002.phpt62
3 files changed, 0 insertions, 112 deletions
diff --git a/ext/reflection/tests/bug26640.phpt b/ext/reflection/tests/bug26640.phpt
deleted file mode 100755
index af7b0d032e..0000000000
--- a/ext/reflection/tests/bug26640.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-Bug #26640 (__autoload() not invoked by Reflection classes)
---FILE--
-<?php
-
-function __autoload($c)
-{
- class autoload_class
- {
- public function __construct()
- {
- print "autoload success\n";
- }
- }
-}
-
-$a = new Reflection_Class('autoload_class');
-
-if (is_object($a)) {
- echo "OK\n";
-}
-
-?>
---EXPECT--
-OK
diff --git a/ext/reflection/tests/bug26695.phpt b/ext/reflection/tests/bug26695.phpt
deleted file mode 100755
index e2eab7e147..0000000000
--- a/ext/reflection/tests/bug26695.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-Bug #26695 (Reflection API does not recognize mixed-case class hints)
---FILE--
-<?php
-
-class Foo {
-}
-
-class Bar {
- function demo(foo $f) {
- }
-}
-
-$class = new Reflection_Class('bar');
-$methods = $class->getMethods();
-$params = $methods[0]->getParameters();
-
-$class = $params[0]->getClass();
-
-var_dump($class->getName());
-?>
-===DONE===
---EXPECT--
-string(3) "Foo"
-===DONE=== \ No newline at end of file
diff --git a/ext/reflection/tests/static_properties_002.phpt b/ext/reflection/tests/static_properties_002.phpt
deleted file mode 100755
index d62d8aca5b..0000000000
--- a/ext/reflection/tests/static_properties_002.phpt
+++ /dev/null
@@ -1,62 +0,0 @@
---TEST--
-ZE2 Inheriting static properties
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
---FILE--
-<?php
-
-class base {
- static protected $prop = 2;
-
- static function show() {
- echo __METHOD__ . '(' . self::$prop . ")\n";
- }
-
- static function inc() {
- base::$prop++;
- echo __METHOD__ . "()\n";
- }
-}
-
-class derived extends base {
- static public $prop;
-
- static function show() {
- echo __METHOD__ . '(' . self::$prop . ")\n";
- }
-
- static function inc() {
- derived::$prop++;
- echo __METHOD__ . "()\n";
- }
-}
-
-base::show();
-derived::show();
-
-base::inc();
-
-base::show();
-derived::show();
-
-derived::inc();
-
-base::show();
-derived::show();
-
-$r = new reflection_class('derived');
-echo 'Number of properties: '. count($r->getStaticProperties()) . "\n";
-
-echo "Done\n";
-?>
---EXPECTF--
-base::show(2)
-derived::show(2)
-base::inc()
-base::show(3)
-derived::show(3)
-derived::inc()
-base::show(4)
-derived::show(4)
-Number of properties: 1
-Done