com php-src: Move ext/reflection tests into the proper directory: ext/reflection/bug70674.phpt ext/reflection/reflectionclass_f or_traits.phpt
ext/reflection/tests/bug70674. phpt ext/reflection/tests/reflectionclass_for_traits.ph pt

From: Date: Sun, 11 Oct 2015 06:41:21 +0000
Subject: com php-src: Move ext/reflection tests into the proper directory: ext/reflection/bug70674.phpt ext/reflection/reflectionclass_f or_traits.phpt
ext/reflection/tests/bug70674. phpt ext/reflection/tests/reflectionclass_for_traits.ph pt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89394@lists.php.net to get a copy of this message
Commit: 68750d04c7c177f8bf9003774d8058fbb92f9207 Author: Sobak <msobaczewski@gmail.com> Sun, 11 Oct 2015 08:41:21 +0200 Parents: 4224907864bbc1291262447c4e23babd7f016fb3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=68750d04c7c177f8bf9003774d8058fbb92f9207 Log: Move ext/reflection tests into the proper directory 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)

« previous php.cvs (#89394) next »