SaschaGalley / grunt-phpunit

Grunt plugin for running phpunit.
MIT License
68 stars 19 forks source link

Issue with bootstrap.php in lowercase #38

Closed henryruhs closed 2 years ago

henryruhs commented 10 years ago

Hello, I found an issue with the bootstrap option:

What seems not to work with my bootstrap file located in the tests folder:

phpunit:
{
    development:
    {
        dir: 'tests/includes'
    },
    options:
    {
        bin: 'vendor/bin/phpunit',
        bootstrap: 'tests/bootstrap.php'
    }
}

Fatal error: Command failed: PHP Warning: require(/media/WIP/redaxscript/vendor/phpunit/phpunit/tests/../vendor/autoload.php): failed to open stream: No such file or directory in /media/WIP/redaxscript/vendor/phpunit/phpunit/tests/bootstrap.php on line 2

It seems that PHPUnit is loading its own bootstrap.php located in my vendor folder.

What works:

  1. bootstrap: 'tests/Bootstrap.php'
  2. bootstrap: 'tests/bootstrap_.php'
  3. bootstrap: './tests/bootstrap.php'

Maby this is an issue of PHPUnit itself, I have no idea.