joonty / vim-phpqa

PHP QA tools for Vim
http://www.joncairns.com
MIT License
290 stars 32 forks source link

Use relative filepaths so differing envs play nice #27

Closed jhogendorn closed 9 years ago

jhogendorn commented 9 years ago

If you're running your environment and your phpunit stack within vagrant, your base paths between your ide and what phpunit will generate will differ (ie, /path/to/my/code/my/project vs /vagrant). This commit alters the plugin to compare the tail end of the relative paths rather than do strict path comparison, which gives just enough leeway to cope with this scenario.

Would have used ends-with but thats not available in this implementation of xpath apparently.

joonty commented 9 years ago

Thanks @jhogendorn!