I have written some test cases and want to try them out with PHPUnit. However, it does not work.
If I run phpunit CategoryTest
it outputs:
PHPUnit 3
You shouldn't overwrite the __construct() method in your TestCase. The constructor sets up the mock generator and some other mandatory thing for the test, so you get a lot of strange behaviour and unwanted side effects if you overwrite the constructor. The setUp() method is the special method you should use to initialize your test.