Codeception / Codeception

Full-stack testing PHP framework
http://codeception.com
MIT License
4.77k stars 1.3k forks source link

How we can load the codeignitor model in unit test? #5610

Closed adnansiddiq closed 5 years ago

adnansiddiq commented 5 years ago

I have installed the codeception in codeignior and test run easily no issue but i could not loaded the model in unit test.

Naktibalda commented 5 years ago

How do you load it in application code? In unit tests it would be the best to avoid dependencies on framework and only instantiate classes that you need for your test to pass.

Naktibalda commented 5 years ago

CodeIgniter framework is not supported. There was a third party module for CodeIgniter 2.1 https://github.com/luka-zitnik/CodeIgniterModule but it doesn't even support PHP 7.

So it is up to you to figure out how to test it.