On 7/21/10 10:51 AM, Fabien Potencier wrote:
On 7/21/10 5:13 PM, Brandon Turner wrote:
git://github.com/blt04/symfony.git black-magic
I don't understand the x you have added at the end.
If I pass a directory name to phpunit:
$ phpunit -c hello/
the preg_match in WebTestCase will find "hello/" in $matches[1], but
then dirname will return "." in this case (esstentially it treats
"hello/" as a file, and returns the base directory). By adding "x" (or
anything else) it's essentially like saying dirname("hello/x") which
will return "hello" which is what is expected. The whole thing is still
messy. I'm happy to try to find a more elegant solution - though it
seems like it would involve some configuration.
Just noticed that if I call "phpunit -c hello" (without the slash) the
whole thing breaks down, so maybe you should ignore this patch. Sorry :/
Brandon
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en