Fatal error: Class 'PHPUnit_Extensions_Selenium2TestCase' not found in *.php

Solution 1:

Solved it by adding this line to the PHP file:

require_once 'vendor/autoload.php';

No tutorial I have seen mentions this, but it can be found in github projects