CakePHP and SimpleTest Tests with a Clean Install

I just downloaded Cake PHP 1.3 and installed SimpleTest 1.0.1 in the vendor directory. When I start the testheit test kernel, I get the following error:

Starting all PHP core Fatal error: Cannot redeclare class Article in /Users/../cake/tests/cases/libs/model/models.php on line 283

If I run test groups or test cases individually, many of them fail.

This is a clean installation, I did not do any development other than the basic configuration (security salt, cipherSeed and database configuration).

Someone else had a problem, and what did you do to solve it?

I found this thread with the same question, but it was not allowed, or at least the permission was not published to this thread.

+6
source share
1 answer

Apparently, as noted in CakePHP 1.3 documentation :

If you run all the main tests at once or run the main test groups, most of which they will fail. This is known by CakePHP Developers and it’s okay not to panic. Instead, try running each core test.

Lame Why even bother with basic tests if they fail. I just lost a lot of faith in Cake. But this is their answer ...

+2
source

Source: https://habr.com/ru/post/892078/


All Articles