diff options
author | Marcus Boerger <helly@php.net> | 2004-08-26 22:24:48 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-08-26 22:24:48 +0000 |
commit | 5960786cc66f6c69e44e37e6935bdf36a711bb91 (patch) | |
tree | ffcb9db170b7f433ef263370c56d873200205101 /ext/reflection | |
parent | 74259c9124c1e1b6e3735b9be1455faed11a7b1b (diff) | |
download | php-git-5960786cc66f6c69e44e37e6935bdf36a711bb91.tar.gz |
Add new test
Diffstat (limited to 'ext/reflection')
-rwxr-xr-x | ext/reflection/tests/bug29828.phpt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug29828.phpt b/ext/reflection/tests/bug29828.phpt new file mode 100755 index 0000000000..69b627079f --- /dev/null +++ b/ext/reflection/tests/bug29828.phpt @@ -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=== |