Testcases are not working #5

nachtfisch opened this Issue Feb 15, 2012 · 2 comments


None yet

2 participants



while trying to fix the belongsTo bug I realized that the testcases are not working. Here my environment:

cake 2.0.4
phpunit 3.6.4

Some errors are due to some changes in the framework, especially the function expectError() and trigger_error are apparently
not supported in this way anymore.

You can use $this->setExpectedException('PHPUnit_Framework_Error'); instead, but I'm not so sure whether this would fit all test-cases.


Hi nachtfisch, thanks for taking interest in helping with the plugin.

I will check this out as soon as I can, I'll be on a trip for a while so it will have to wait a bit..


Finally got a chance to take a look at this, and it seems like my PHPUnit version is a bit elderly. No cake errors though. I'll try to update my PHPUnit and investigate some more in the following days.

@lecterror lecterror closed this in 94b2ce4 Mar 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment