From 4d173e6ba54375edee830122c8970e84a6d3a54d Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 23 Sep 2004 21:22:00 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'php_5_0_2'. --- ext/reflection/tests/bug30146.phpt | 23 ------------------- ext/reflection/tests/bug30148.phpt | 35 ----------------------------- ext/reflection/tests/parameters_001.phpt | 38 -------------------------------- 3 files changed, 96 deletions(-) delete mode 100755 ext/reflection/tests/bug30146.phpt delete mode 100755 ext/reflection/tests/bug30148.phpt delete mode 100755 ext/reflection/tests/parameters_001.phpt diff --git a/ext/reflection/tests/bug30146.phpt b/ext/reflection/tests/bug30146.phpt deleted file mode 100755 index 4f48985dcc..0000000000 --- a/ext/reflection/tests/bug30146.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---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 deleted file mode 100755 index c3bfd0611f..0000000000 --- a/ext/reflection/tests/bug30148.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---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/parameters_001.phpt b/ext/reflection/tests/parameters_001.phpt deleted file mode 100755 index 709944677f..0000000000 --- a/ext/reflection/tests/parameters_001.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Check for parameter being optional ---FILE-- -getNumberOfParameters()); -var_dump($f->getNumberOfRequiredParameters()); - -$p = new ReflectionParameter(array('Test', 'func'), 'x'); -var_dump($p->isOptional()); - -$p = new ReflectionParameter(array('Test', 'func'), 'y'); -var_dump($p->isOptional()); - -try { - $p = new ReflectionParameter(array('Test', 'func'), 'z'); - var_dump($p->isOptional()); -} -catch (Exception $e) { - var_dump($e->getMessage()); -} - -?> -===DONE=== ---EXPECT-- -int(2) -int(1) -bool(false) -bool(true) -string(54) "The parameter specified by its name could not be found" -===DONE=== -- cgit v1.2.1