summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-09-27 19:26:50 +0200
committerNikita Popov <nikic@php.net>2016-09-28 19:21:53 +0200
commitf70fb05138e9d5dd2126eadec0377abf705dec74 (patch)
tree764781390f5ee700f3009dd5bc3a114080d21398 /ext/reflection/tests
parentbf907b9961000dfb9b3bf3bd8a1e00e327a8268e (diff)
downloadphp-git-f70fb05138e9d5dd2126eadec0377abf705dec74.tar.gz
Don't mark ReflectionType::__toString() as deprecated for now
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r--ext/reflection/tests/ReflectionNamedType.phpt10
-rw-r--r--ext/reflection/tests/bug72661.phpt3
2 files changed, 2 insertions, 11 deletions
diff --git a/ext/reflection/tests/ReflectionNamedType.phpt b/ext/reflection/tests/ReflectionNamedType.phpt
index afb592127c..a40d4066ec 100644
--- a/ext/reflection/tests/ReflectionNamedType.phpt
+++ b/ext/reflection/tests/ReflectionNamedType.phpt
@@ -30,20 +30,12 @@ var_dump($return->getName());
var_dump((string) $return);
?>
---EXPECTF--
+--EXPECT--
string(11) "Traversable"
-
-Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
string(11) "Traversable"
string(6) "string"
-
-Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
string(6) "string"
string(4) "Test"
-
-Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
string(4) "Test"
string(4) "Test"
-
-Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
string(4) "Test"
diff --git a/ext/reflection/tests/bug72661.phpt b/ext/reflection/tests/bug72661.phpt
index 1522c5f201..40d14922b8 100644
--- a/ext/reflection/tests/bug72661.phpt
+++ b/ext/reflection/tests/bug72661.phpt
@@ -6,6 +6,5 @@ function test(iterable $arg) { }
var_dump((string)(new ReflectionParameter("test", 0))->getType());
?>
---EXPECTF--
-Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
+--EXPECT--
string(8) "iterable"