PHPUnit开箱即用,无法在OSX上运行

Installed PHPUnit via PEAR and copied the latest repository from https://github.com/sebastianbergmann/phpunit/

Wrote a basic test and saved it in the root directory (also tried /Tests/)

<?php
require_once 'PHPUnit/Autoload.php';
class CalculatorTest extends PHPUnit_Framework_TestCase{
    public function testAdd(){
        $c = New Calculator();
        $result = $c->add(5, 10);
        $this->assertEquals(15, $result);
    }
}

Throws errors about not being able to load require_once(SebastianBergmann/Diff/autoload.php) In the PHPUnit/Autoload.php there is three lines, 69, 70 and 71.

require_once 'SebastianBergmann/Diff/autoload.php';
require_once 'SebastianBergmann/Exporter/autoload.php';
require_once 'SebastianBergmann/Version/autoload.php';

The directory SebastianBergmann doesn't even exist.... why are these lines in here?

What am I doing wrong, did I copy from the wrong place?

Also trying to run /Tests/Runner/BaseTestRunnerTest.php fails with Class 'PHPUnit_Runner_BaseTestRunner' not found

You cannot just clone it and expect to work. Either completely install via PEAR or composer.

As of those particular references - they are satisfied as composer dependencies: see here https://github.com/sebastianbergmann/phpunit/blob/master/composer.json#L32