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_Framew ork_TestCase {
public function __construct($st ring) {
parent::__const ruct($string);
}
public function testTrue() {
self::assertTru e(true);
}
}
$suite = new PHPUnit2_Framew ork_TestSuite(' TrueTest');
$result = $suite->run();
?>
--
Med venlig hilsen
- Jacob Atzen
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_Framew ork_TestCase {
public function __construct($st ring) {
parent::__const ruct($string);
}
public function testTrue() {
self::assertTru e(true);
}
}
$suite = new PHPUnit2_Framew ork_TestSuite(' TrueTest');
$result = $suite->run();
?>
--
Med venlig hilsen
- Jacob Atzen
Comment