Generated app fails phpunit with PHPUnit/Autoload.php

Bonjour,

Disclaimer: It is probably a stupid mistake on my part. To repeat my stupid mistake, do the following:

# phpunit -c phpunit.xml 
PHP Warning:  require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /var/www/html/apps/foobar/tests/bootstrap.php on line 16
PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/archive_tar:/var/www/html/apps') in /var/www/html/apps/foobar/tests/bootstrap.php on line 16

I would be super happy if someone could tell me what stupid mistake I made :stuck_out_tongue:

Thanks in advance!

for 14 we upgraded the required phpunit version, but the tutorial is for 13 I think, so it still requires phpunit 5.6

1 Like

@nickvergessen indeed it works with phpunit-5.7, thanks for the hint!