SRIT, on 13 February 2010 - 10:21 AM, said:
if I execute at example:
phpunit --verbose functional
the console will output the following error:
PHPUnit 3.2.16 by Sebastian Bergmann.
File "functional.php" could not be found or is not readable.
But the top example is from the documentation, is the a trick to execute the tests. Before you answer change the working dir to $YIIAPP/protected/tests this have I do.
Works for me with PHPUnit 3.4.0
Edit: BTW did you mean functional tests? The subject line says unit tests. I see a DB problem not noticed before with unit tests ( http://www.yiiframew...db-connnection/
Edit2: "The testing supported provided by Yii requires PHPUnit 3.3+ and Selenium Remote Control 1.0+." Reference: the guide
This post has been edited by tri: 13 February 2010 - 12:56 PM