From 57c5bff12309b476ba5a8b78d87dfbc2f26702ea Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 23 Sep 2004 18:38:35 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. --- ext/reflection/tests/bug30146.phpt | 23 ++++++++++++++++++++ ext/reflection/tests/bug30148.phpt | 35 ++++++++++++++++++++++++++++++ ext/reflection/tests/bug30209.phpt | 31 ++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100755 ext/reflection/tests/bug30146.phpt create mode 100755 ext/reflection/tests/bug30148.phpt create mode 100755 ext/reflection/tests/bug30209.phpt diff --git a/ext/reflection/tests/bug30146.phpt b/ext/reflection/tests/bug30146.phpt new file mode 100755 index 0000000000..4f48985dcc --- /dev/null +++ b/ext/reflection/tests/bug30146.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #30146 (ReflectionProperty->getValue() requires instance for static property) +--FILE-- +getValue(null)); + +$r->setValue(NULL, 2); +var_dump($r->getValue()); + +$r->setValue(3); +var_dump($r->getValue()); +?> +===DONE=== +--EXPECT-- +int(1) +int(2) +int(3) +===DONE=== \ No newline at end of file diff --git a/ext/reflection/tests/bug30148.phpt b/ext/reflection/tests/bug30148.phpt new file mode 100755 index 0000000000..c3bfd0611f --- /dev/null +++ b/ext/reflection/tests/bug30148.phpt @@ -0,0 +1,35 @@ +--TEST-- +Bug #30148 (ReflectionMethod->isConstructor() fails for inherited classes) +--FILE-- +isConstructor()); +var_dump($b->isConstructor()); +var_dump($c->isConstructor()); +var_dump($d->isConstructor()); +var_dump($e->isConstructor()); +?> +===DONE=== +--EXPECT-- +bool(true) +bool(false) +bool(true) +bool(false) +bool(true) +===DONE=== \ No newline at end of file diff --git a/ext/reflection/tests/bug30209.phpt b/ext/reflection/tests/bug30209.phpt new file mode 100755 index 0000000000..8afb651e78 --- /dev/null +++ b/ext/reflection/tests/bug30209.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #30209 () +--FILE-- +name); + $method = $class->getMethod($this->name); + var_dump($this->name); + } + + catch (Exception $e) {} + } +} + +$foo = new Foo; +$foo->testBAR(); +?> +===DONE=== +--EXPECTF-- +string(7) "testBAR" +string(7) "testBAR" +===DONE=== -- 2.50.1