27 January 2011 at 6:22am
I want to write testcases but I am not able to get PHPUnit started. I searched this and other forums and read different installation manuals. I checked the config and path entries but by calling http://localhost/dev/tests in my browser I get the error
Please install PHPUnit using pear
Using phpunit in command line mode without any parameters I get the usage informations. Calling
shows me the error
sapphire/tests/.php could not be found or is not readable
I´m using xampp 1.7.0 (Apache 2.2.11 and PHP 5.2.8 MySql 5.1.30) on WindowsXP.
I checked the config-files php.ini and pear.ini several times but I did not find any inconsistence between the manual, forum entries and my config. Can anybody help me?
27 January 2011 at 11:57am
To run the tests you should use sake or via a webbrowser hitting the url http://yoursite.com/dev/tests/ or sake dev/tests. Running the tests directly through phpunit is something Ingo has just got working, don't know if this has made general release yet though!