I am programming some tests with PHPUnit and recently, I have come across the flag option: --process-isolation After reading that it runs each test in a separate PHP process, I thought it might be helpful to use this flag when I execute my testsuites. However, it constantly raises Exceptions such as:
PHPUnit_Framework_Exception: stty: Standard Input: Invalid Argument
or sometimes:
PHPUnit_Framework_Exception: Notice: Constant PEAR_ERROR_RETURN already defined in /usr/share/php/PEAR.php on line 25
Notice: Constant PEAR_ERROR_PRINT already defined in /usr/share/php/PEAR.php on line 26
Notice: Constant PEAR_ERROR_TRIGGER already defined in /usr/share/php/PEAR.php on line 27
Notice: Constant PEAR_ERROR_DIE already defined in /usr/share/php/PEAR.php on line 28
Notice: Constant PEAR_ERROR_CALLBACK already defined in /usr/share/php/PEAR.php on line 29
Notice: Constant PEAR_ERROR_EXCEPTION already defined in /usr/share/php/PEAR.php on line 34
Notice: Constant PEAR_ZE2 already defined in /usr/share/php/PEAR.php on line 37
Notice: Constant OS_WINDOWS already defined in /usr/share/php/PEAR.php on line 44
Notice: Constant OS_UNIX already defined in /usr/share/php/PEAR.php on line 45
Notice: Constant PEAR_OS already defined in /usr/share/php/PEAR.php on line 46
The first exception only comes up when I activate the flag of process isolation, whereas I don't have it, the test runs smoothly and without any problems. The second exception, at first hand, i thought it might be due to a conflict in inclusions, but after looking it over and changing all include to include_once, the exception still keeps coming up.
Any help would appreciated.