Closed Bouwdie closed 4 years ago
Relative file path are intentionally not supported.
What was your use case?
The use case was loading a factories folder directly under /test/factories from a test class /test/Ns1/xTest.php. Now i called realpath on the relative dir to get it working. Or update the regex to handle relative paths. Why is it intentionally not supported? ../../factories i understand, but /home/test/foo/../factories should work right?
Hmmm, ok. Feel free to submit a pull request, and I'll take a look at it. ;)
Ping @Bouwdie. ;)
Will take a look at it real soon @GrahamCampbell :100:
Closing due to no response from the OP.
Maybe the regex could be simpler as well?
[^\/]+\.php$
https://regex101.com/r/rJ3hS9/1