summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-09-23 21:22:00 +0000
committerSVN Migration <svn@php.net>2004-09-23 21:22:00 +0000
commit4d173e6ba54375edee830122c8970e84a6d3a54d (patch)
tree29b97eafc57215dbf60704292c11cd4aaa228163
parent412fb096fa08712ba270eee0455eb376130c5c01 (diff)
downloadphp-git-php-5.0.2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_2'.php-5.0.2
-rwxr-xr-xext/reflection/tests/bug30146.phpt23
-rwxr-xr-xext/reflection/tests/bug30148.phpt35
-rwxr-xr-xext/reflection/tests/parameters_001.phpt38
3 files changed, 0 insertions, 96 deletions
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--
-<?php
-class test {
- static public $a = 1;
-}
-
-$r = new ReflectionProperty('test', 'a');
-var_dump($r->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--
-<?php
-
-class Root
-{
- function Root() {}
-}
-class Base extends Root
-{
- function __construct() {}
-}
-class Derived extends Base
-{
-}
-$a = new ReflectionMethod('Root','Root');
-$b = new ReflectionMethod('Base','Root');
-$c = new ReflectionMethod('Base','__construct');
-$d = new ReflectionMethod('Derived','Root');
-$e = new ReflectionMethod('Derived','__construct');
-var_dump($a->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--
-<?php
-
-class Test {
- function func($x, $y = NULL){
- }
-}
-
-
-$f = new ReflectionMethod('Test', 'func');
-var_dump($f->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===