Bug #70034 [Fbk->Csd]: ReflectionClass->getFileName in PHPT returns "-" as filename
| From: | james at asgrim dot com | Date: | Thu, 09 Jul 2015 17:28:02 +0000 |
| Subject: | Bug #70034 [Fbk->Csd]: ReflectionClass->getFileName in PHPT returns "-" as filename | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194262@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70034&edit=1
ID: 70034
User updated by: james at asgrim dot com
Reported by: james at asgrim dot com
Summary: ReflectionClass->getFileName in PHPT returns "-" as
filename
-Status: Feedback
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: Ubuntu 15.04
PHP Version: 5.6.10
Block user comment: N
Private report: N
New Comment:
Hmm - I'm running the test using PHP Unit, so this may be a bug there instead. I'll close
this, investigate some more and re-open if it needs a closer look at here :)
Thank you!
Previous Comments:
------------------------------------------------------------------------
[2015-07-09 14:42:28] cmb@php.net
The test passes for me, and apparently for others as well[1]. How
did you run the test (make test or directly via run-tests.php)?
[1] <https://qa.php.net/reports/run_tests.php?version=5.6.10>
------------------------------------------------------------------------
[2015-07-09 12:53:28] james at asgrim dot com
Description:
------------
The ReflectionClass_FileInfo_basic.phpt test is failing.
When creating a reflection of a class in a .phpt test, the getFileName() method returns simply a
string with a hypen ("-") instead of the actual filename.
--- Expected
+++ Actual
@@ @@
-string(%d) "%sReflectionClass_FileInfo_basic.php"
+string(1) "-"
https://github.com/php/php-src/blob/master/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt
Expected result:
----------------
Expect the filename returned by getFileName() to be "%sReflectionClass_FileInfo_basic.php"
Actual result:
--------------
The filename returned by getFileName() is actually "-"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70034&edit=1