PhpUnit example fails

From: Date: Tue, 13 Sep 2011 00:08:13 +0000
Subject: PhpUnit example fails
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31217@lists.php.net to get a copy of this message
Hi, I am running this example: http://pear.php.net/manual/en/package.php.phpunit.intro.php Here is the error that I have: ************************************************************************************ c:\xampp\htdocs\projects\phpexamples\unittesting>php stringtest.php ---- stringtest.php ---- ---- testcase.php ---- PHP Strict Standards: Non-static method PHPUnit::run() should not be called sta tically in C:\xampp\htdocs\projects\phpexamples\unittesting\stringtest.php on li ne 9 Strict Standards: Non-static method PHPUnit::run() should not be called statical ly in C:\xampp\htdocs\projects\phpexamples\unittesting\stringtest.php on line 9 PHP Catchable fatal error: Object of class String could not be converted to str ing in C:\xampp\php\PEAR\PHPUnit\Assert.php on line 174 Catchable fatal error: Object of class String could not be converted to string i n C:\xampp\php\PEAR\PHPUnit\Assert.php on line 174 c:\xampp\htdocs\projects\phpexamples\unittesting>phpunit stringtest.php Could not open input file: .\pear\PHPUnit2\TextUI\TestRunner.php **************************************************************************************************** when i run php i have php errors and when i run directly phpunit it looks like it does not have the right path because the file TestRunner.php exists in the filesystem. Do you know why i get this errors? How can I fix that? Thanks

« previous php.pear.general (#31217) next »