]> granicus.if.org Git - php/commitdiff
Add new test
authorMarcus Boerger <helly@php.net>
Thu, 26 Aug 2004 22:24:48 +0000 (22:24 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 26 Aug 2004 22:24:48 +0000 (22:24 +0000)
ext/reflection/tests/bug29828.phpt [new file with mode: 0755]

diff --git a/ext/reflection/tests/bug29828.phpt b/ext/reflection/tests/bug29828.phpt
new file mode 100755 (executable)
index 0000000..69b6270
--- /dev/null
@@ -0,0 +1,35 @@
+--TEST--
+Bug #29828 (Interfaces no longer work)
+--FILE--
+<?php
+
+interface Bla
+{
+       function bla();
+}
+
+class BlaMore extends Bla
+{
+       function bla()
+       {
+               echo "Hello\n";
+       }
+}
+
+$r = new ReflectionClass('BlaMore');
+
+var_dump(count($r->getMethods()));
+var_dump($r->getMethod('bla')->isConstructor());
+var_dump($r->getMethod('bla')->isAbstract());
+
+$o=new BlaMore;
+$o->bla();
+
+?>
+===DONE===
+--EXPECT--
+int(1)
+bool(false)
+bool(false)
+Hello
+===DONE===