I have exactly the same problem . I tried solution above but nothing works. Also I check and double check code inside ProjectTest.php, fixtures data and seems to be no typo errors but non of above didn’t work.
Please if anyone cn help to resolve this problem I’m stuck here.
I would like to agree with Backslider’s first statement/question. There should absolutely be tests written for core framework functionality in Yii, including the testing framework. Second statement respectfully disagree. No reason to quit unit testing when it gets difficult, tests are almost always more difficult to write than the models being tested.
As for the specific problem that we are addressing in this thread, my strong advice is to make sure that your table name in the model that you are testing is exactly the same as the fixture file name. For example, if my model’s table name is LOOKUP, then my fixture file name should be ‘LOOKUP.php’ <-- note that the capitalization matters.