Howdy,
For the last couple of days I've been trying to get PHPUnit2 (the one
from Pear) working on my system.
I have read the documentation over and over but still can't get any
tests to run. I've created the following trivial piece of testcode and
put it in TrueTest.php. When I try to run 'phpunit TrueTest' nothing
happens, the same with 'phpunit TrueTest.php' and 'phpunit TrueTest
TrueTest.php'. If I run phpunit without arguments I get the expected
help information. What am I missing?
<?php
require_once 'PHPUnit2/Framework/TestCase.php';
require_once 'controller/frontcontroller.php';
class TrueTest extends PHPUnit2_Framework_TestCase {
public function __construct($string) {
parent::__construct($string);
}
public function testTrue() {
self::assertTrue(true);
}
}
$suite = new PHPUnit2_Framework_TestSuite('TrueTest');
$result = $suite->run();
?>
--
Med venlig hilsen
- Jacob Atzen