ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
150 stars 38 forks source link

PHPUnit stopped working with Luthier-CI #31

Open Ihabafia opened 5 years ago

Ihabafia commented 5 years ago

Dear Sir,

Once I installed the Luthier-CI, all the tests of the TDD UnitTest start giving the following error:

1) Welcome_test::test_index
Exception: Serialization of 'Closure' is not allowed

One I comment the Hook information:

$hook = Luthier\Hook::getHooks([
    'modules' => ['auth']
]);

Everything works fine, any suggestion?

Thank you,

Ihabafia commented 5 years ago

Any News???

andersonsalas commented 5 years ago

Hi!

The unit tests are not being finished yet. we were very busy but the development of this project (and others that we own) will be resumed in a few days. However, these unit tests are meant for the Luthier CI development, not to be used as a PHPUnit bridge for CodeIgniter applications. You can use the kenjis/ci-phpunit-test package for that.

Ihabafia commented 5 years ago

I did, but all the tests fails because of the error that I told you about:

1) Welcome_test::test_index
Exception: Serialization of 'Closure' is not allowed
andersonsalas commented 5 years ago

Yeah, I've confirmed the error, but it's too early to tell you what's triggering it. At the moment I'll keep this issue open while finding a solution :worried:

andersonsalas commented 5 years ago

Nothing yet. I'm still looking for a solution.

yahyaerturan commented 5 years ago

Is this repo is still being maintained?

andersonsalas commented 5 years ago

Is this repo is still being maintained?

Hi @yahyaerturan!. Yes, the repo is still maintained, however, no more features are planned to add for now.

banqhsia commented 5 years ago

Related to https://github.com/kenjis/ci-phpunit-test/issues/187#event-1118117087

It can be solved by the workaround above.