What chapter are you on…? Is that the exact msg you got from phpunit?
I had something similar and it’s because I put the authMan RBAC at the bottom of the main.php file… I ended up putting it just under the DB connection component like the source code.
I was having the same issue with chapter 3 ‘Adding Tasks’ (page 124/125 ‘Adding User and ProjectUserAssignment fixtures’).
I undid everything and the tests worked so then slowly added parts back in - I found that simply adding a file to the fixtures area caused issue (protected/tests/fixtures/tbl_user.php).
I fixed this by adding in more data to the fixtures file - the book has empty entries for login and create times and id’s - by making sure all fixture entries have data the error goes.
Might be useful to someone ?!
(Probably my stricter data definitions in the database…)
(Using Yii 1.1.4 too which probably doesn’t help but there shouldn’t be too many issues I’m hoping).