I have the following example test code (PHP4) I need to run with phpunit:
<?php
require_once 'PHPUnit/Framework.php';
class RemoteConnectTest extends PHPUnit_Framework_TestCase
{
public function setUp(){ }
public function tearDown(){ }
public function testConnectionIsValid()
{
$this->assertTrue(true);
}
}
?>
which does not run with phpunit:
PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Framework.php' ...
How do I need to setup my environment to make this work (Linux, Ubuntu 12.04)? Do I need to set a search path? Change php.ini? I AM NOT ABLE TO CHANGE THE TEST CODE ITSELF.
phpunit, use options, anything, but the test code has to stay unchanged. Where all the required files are is of no importance.PHPUnit/Framework.phpis at all...