I just stuck all this morning to figure out this, but without luck.
I create a test under tests/unit
<?php
class DbTest extends CTestCase {
public function testConnection() {
$this->assertTrue( true );
}
}
?>
when I run it in the terminal
$ cd tests
$ phpunit unit/DbTest.php
I get this error:
PHPUnit 3.7.8 by Sebastian Bergmann.
Function 'phpunit_autoload' not found (function 'phpunit_autoload' not found or invalid function name)
my phpunit version is 3.7.8