com php-src: Move the tests to proper place: ext/reflection/bug70674.phpt ext/reflection/reflectionclass_for_traits.phpt ext/refl
ection/tests/bug70674.phpt ext/reflection/tests/r eflectionclass_for_traits.phpt
| From: | Xinchen Hui | Date: | Wed, 14 Oct 2015 02:26:02 +0000 |
| Subject: | com php-src: Move the tests to proper place: ext/reflection/bug70674.phpt ext/reflection/reflectionclass_for_traits.phpt ext/refl ection/tests/bug70674.phpt ext/reflection/tests/r eflectionclass_for_traits.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89393@lists.php.net to get a copy of this message | ||
Commit: 534856c98a88df823b2dc66144fbd7e223bba6a3
Author: Xinchen Hui <laruence@gmail.com> Wed, 14 Oct 2015 10:26:02 +0800
Parents: 010509355d2ab1a758fa21bd7db5fb9bb3c9fd15
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=534856c98a88df823b2dc66144fbd7e223bba6a3
Log:
Move the tests to proper place
Changed paths:
D ext/reflection/bug70674.phpt
D ext/reflection/reflectionclass_for_traits.phpt
A ext/reflection/tests/bug70674.phpt
A ext/reflection/tests/reflectionclass_for_traits.phpt
Diff:
diff --git a/ext/reflection/bug70674.phpt b/ext/reflection/bug70674.phpt
deleted file mode 100644
index 82cfc53..0000000
--- a/ext/reflection/bug70674.phpt
+++ /dev/null
@@ -1,8 +0,0 @@
---TEST--
-Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
---FILE--
-<?php
-var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
-?>
---EXPECT--
-int(5)
diff --git a/ext/reflection/reflectionclass_for_traits.phpt
b/ext/reflection/reflectionclass_for_traits.phpt
deleted file mode 100644
index 526310a..0000000
--- a/ext/reflection/reflectionclass_for_traits.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Tests some parts of ReflectionClass behavior for traits
---FILE--
-<?php
-
-trait T {}
-
-$r = new ReflectionClass('T');
-var_dump(Reflection::getModifierNames($r->getModifiers()));
-var_dump($r->isAbstract());
-var_dump($r->isInstantiable());
-var_dump($r->isCloneable());
-
-?>
---EXPECT--
-array(0) {
-}
-bool(false)
-bool(false)
-bool(false)
diff --git a/ext/reflection/tests/bug70674.phpt b/ext/reflection/tests/bug70674.phpt
new file mode 100644
index 0000000..82cfc53
--- /dev/null
+++ b/ext/reflection/tests/bug70674.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
+--FILE--
+<?php
+var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
+?>
+--EXPECT--
+int(5)
diff --git a/ext/reflection/tests/reflectionclass_for_traits.phpt
b/ext/reflection/tests/reflectionclass_for_traits.phpt
new file mode 100644
index 0000000..526310a
--- /dev/null
+++ b/ext/reflection/tests/reflectionclass_for_traits.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Tests some parts of ReflectionClass behavior for traits
+--FILE--
+<?php
+
+trait T {}
+
+$r = new ReflectionClass('T');
+var_dump(Reflection::getModifierNames($r->getModifiers()));
+var_dump($r->isAbstract());
+var_dump($r->isInstantiable());
+var_dump($r->isCloneable());
+
+?>
+--EXPECT--
+array(0) {
+}
+bool(false)
+bool(false)
+bool(false)