Req #67975 [NEW]: Support for method naming resolution
| From: | mkurczew at gmail dot com | Date: | Mon, 08 Sep 2014 09:01:18 +0000 |
| Subject: | Req #67975 [NEW]: Support for method naming resolution | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187439@lists.php.net to get a copy of this message | ||
From: mkurczew at gmail dot com
Operating system: *
PHP version: 5.6.0
Package: Reflection related
Bug Type: Feature/Change Request
Bug description:Support for method naming resolution
Description:
------------
PHP 5.5.0 introduced ::class, which allows people to write nice unit
tests that don't rely on magic strings. However, there is no way to
reference a method or function in similar fashion, so in reality most of
unit tests still need to rely on magic strings. Having such feature
would prevent issues like
https://github.com/sebastianbergmann/phpunit-mock-objects/issues/12
from
appearing, and could tell me if I'm doing something wrong the second PHP
finishes parsing my script's syntax.
--
Edit bug report at https://bugs.php.net/bug.php?id=67975&edit=1
--