stuartherbert / sublime-phpunit

PHPUnit Support for Sublime Text 2
https://github.com/stuartherbert/sublime-phpunit
Other
103 stars 20 forks source link

Same class names but different namespaces not working properly #61

Open marcotas opened 8 years ago

marcotas commented 8 years ago

First of all, congratulations for this awesome and helpful plugin! There is something I thing it is simple to solve. Let's go:

If I have two classes with same name in different namespaces:

with it's respective tests:

when i'm in Service\MyClass and trigger 'phpunit_toggle_class_test_class' it was suppose to open the respective Service\MyClassTest but it it's always openning one of them: Service\MyClassTest, even if i'm in the other class Command\MyClass it will open the Service\MyClassTest.

I think it's always openning the first match in the 'phpunit_toggle_class_test_class' command. My suggestion is to show a list of options to toggle when in these cases.

I hope i was clear. Sorry about my english.

Thanks a lot!