Skip to content

Relative paths in XML-configuration #62

Closed

Description

@kaigan

I'm using a XML configuration file to specify which files to run. Normaly I use PHPUnit as a command line tool and it works great. When I tried VisualPHPUnit it fails to load my test files properly. I'm getting a RuntimeException: Cannot open file "logger/logger.php"; where "logger/logger.php" is the first file specified in my XML configuration file. PHPUnit interprets relative paths in a XML configuration as realtive to the position of the configuration file itself. This doesn't appear to be true of VisualPHPUnit. I would like the configuration file to stay the same for both PHPUnit and VisualPHPUnit, is this possible?

Activity

  1. kaigan commented on Sep 4, 2012

    @kaigan
    Author

    Well, after some further investigation I have concluded that this is not the fault of VPU. My XML configuration works if I run phpunit from the same directory with no arguments whatsoever. However if I try to run it somewhere else with the "--configuration" argument pointing to my XML configuration it fails exactly as VPU. I believe this is the same issue as PHPUnit #552.

    I'm sorry to have blamed it on you, though I would appreciate any tips on how to resolve this!

  2. ghost closed this as completedon Sep 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions