]> granicus.if.org Git - php/commitdiff
- MFH
authorMarcus Boerger <helly@php.net>
Sun, 13 Feb 2005 13:59:07 +0000 (13:59 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 13 Feb 2005 13:59:07 +0000 (13:59 +0000)
ext/reflection/tests/invoke.phpt [deleted file]

diff --git a/ext/reflection/tests/invoke.phpt b/ext/reflection/tests/invoke.phpt
deleted file mode 100755 (executable)
index a79b0e0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-invoke with non object or null value
---FILE--
-<?php
-
-class a {
-       function a(){
-       }
-}
-class b {
-}
-
-$b = new b();
-
-$a=new ReflectionClass("a");
-$m=$a->getMethod("a");
-
-try {
-        $m->invoke(null);
-} catch (ReflectionException $E) {
-        echo $E->getMessage()."\n";
-}
-
-
-try {
-        $m->invoke($b);
-} catch (ReflectionException $E) {
-        echo $E->getMessage()."\n";
-}
-
-$b = new a();
-try {
-        $m->invoke($b);
-} catch (ReflectionException $E) {
-        echo $E->getMessage()."\n";
-}
-
-echo "===DONE===\n";?>
---EXPECT--
-Non-object passed to Invoke()
-Given object is not an instance of the class this method was declared in
-===DONE===