chiefmyron / phpunit-test-workbench

An extension to integrate PHPUnit with the native Test Explorer functionality within VS Code. Zero configuration required for common environment setups.
https://marketplace.visualstudio.com/items?itemName=chiefmyron.phpunit-test-workbench
MIT License
5 stars 2 forks source link

Editing an existing test script does not not update location of shifted class and function 'run' icons #47

Closed chiefmyron closed 1 year ago

chiefmyron commented 1 year ago

When modifying an existing test script, the test locators for tests and classes already present in the file are not updated if they change location:

image

chiefmyron commented 1 year ago

Issue was caused when the user modified the namespace of the test file - did not have any logic to clean up the class from an old namespace when moving to a new one, or any logic that ensures that the new namespace actually exists.