wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

Fix tests for Cake3 #90

Open wa0x6e opened 9 years ago

wa0x6e commented 9 years ago

Master branch is now used for CakePHP 3.0

For the moment, every tests are failing, as they're not updated for both CakePHP 3 and phpunit 4.7. Previous tests were running under phpunit 3.7.

I have done some minor patches to make the tests running again, albeit with errors.

Tests are now failing for 2 reasons:

phpunit

There's some major changes between phpunit 3 and 4, and some functions were either renamed or removed.

Example: staticExpects() for mocking static class was removed.

All test required updates for the latest version og phpunit.

CakePHP 3

New version of Cake is introducing namespace. All test classes are currently namespaced, but the required libraires are not, yet.

I'll try to fix these as I have times, but it'll take some times, as I have now moved away from PHP. Any help or PR are welcome :kissing_heart:

kallealberg commented 9 years ago

Great work!

oanhnn commented 8 years ago

@wa0x6e Is it ready for cake3?