Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Fix tests for Cake3 #90

Open
wa0x6e opened this issue Jul 20, 2015 · 2 comments
Open

Fix tests for Cake3 #90

wa0x6e opened this issue Jul 20, 2015 · 2 comments

Comments

@wa0x6e
Copy link
Owner

wa0x6e commented Jul 20, 2015

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.

  • App::uses() is now removed, and all libraries loaded via this function need to be loaded via autoloading.
  • Some classes inside the tests need to be namespaced

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 😘

@kallealberg
Copy link

Great work!

@oanhnn
Copy link

oanhnn commented Feb 26, 2016

@wa0x6e Is it ready for cake3?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants