I'm trying to run some PhpUnit tests and it's working great but I keep running into the following problem. When I write a Unittest and it fails for whatever reason I'm getting the following error message (I'm also getting a unclear message why the test failed):
1) testUser_ReadOnly::testLoginFunction
PHP Warning: require_once(../classes/PHP_Invoker.php): failed to open stream: No such file or directory in C:\xampp\htdocs\map\src\tests\autoload.php on line 6
Now I found a sollution on the internet that just says I have to add the following line to my composer.json:
"phpunit/php-invoker": "1.1.*"
When I then try to run the composer update function I'm getting the following error messages:
Problem 1
- phpunit/php-invoker 1.1.4 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- phpunit/php-invoker 1.1.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- phpunit/php-invoker 1.1.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- phpunit/php-invoker 1.1.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- Installation request for phpunit/php-invoker 1.1.* -> satisfiable by phpunit/php-invoker[1.1.1, 1.1.2, 1.1.3, 1.1.4].
Is there anybody who has a sollution for this problem? Any help is appreciated! Thanks in advance!