Bug #11207

Fatal error when PHPUnit is not installed

Added by Bastian Waidelich about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
- Testing -
Start date:
2010-12-01
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

PHPUnit and vfs(stream) are no longer included with the FLOW3 distribution.
But still, the core relies on those libraries.
Running FLOW3 without the respective PEAR packages installed, PHP dies with a fatal error:

Fatal error: require_once() [function.require]: Failed opening required 'PHPUnit/Autoload.php'

IIRC the plan is to get rid of the dependency (as long as you don't want to run the unit tests of course).
But anyways, the fatal error should be avoided by checking for the existence of the required PEAR packages IMO


Related issues

Related to TYPO3.Flow - Feature #1856: The Package Manager checks dependencies between packages on each activation / deactivationNewChristopher Hlubek2008-10-27

Actions

Also available in: Atom PDF