Skip to content

Wrongly file path selection when "test" shares the same namespace as "source" #795

@przepompownia

Description

@przepompownia

Version: develop, with phpactor/phpunit-extension.

To reproduce, you can use the example from:
https://github.com/przepompownia/phpactor-bug-shared-namespace

  • open src/Domain/Example.php
  • :call phpactor#Navigate(), select test
    The first dialog looks correctly:
    File "tests/Domain/ExampleTest.php" does not exist, generate new?:
    After confirm I get the message:
    Error from Phpactor: File "/tmp/phpactor-shared-namespace/src/Domain/Example.php" already exists and is non-empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions