Our team is attempting to setup PHPUnit testing for an existing Silverstripe project. We have encountered issues with running tests.
Problem
The bootstrap is not finding the Silverstripe PHPUnit specific classes
Details
OS: Ubuntu 12.04
Silverstripe was installed not using composer
Installed PHPUnit through phar method
Run phpunit from the browser (fails with no phpunit is found)
Run phpunit from the command line (fails with the following error)
PHP Fatal error: Class 'SapphireTest' not found in /var/www/aep-ss/mysite/tests/FastTest.php on line 26
Summary
Since its an existing project, we don't want to use composer to install phpunit (it shouldn't be necessary). We think there is a problem with the boostrap not loading the necessary php files as when adding *SapphireTest* to *vendor/composer/autoload_classmap.ph* it resolved that error. However, it introduced another error (missing the next php class).
We have also tried installation of phpunit which resulted in the same errors via
apt-get
pear
Questions
Is there a possible problem with the boostrap?
Are there any solutions not using composer to setting up PHPUnit testing?