Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: replace core file according to CI version #120

Open
tianhe1986 opened this issue May 27, 2016 · 3 comments
Open

Suggestion: replace core file according to CI version #120

tianhe1986 opened this issue May 27, 2016 · 3 comments

Comments

@tianhe1986
Copy link

tianhe1986 commented May 27, 2016

I'm glad to use it for unittest.It is very cool! Thank you!

My project uses CI 3.0.2 and It works very well with ci-phpunit-test till now, but I found there are some differences between Loader.php and Loader.php-3.0.1, so I'm not sure if there are some potential problems for their unmatched version.

For some reason, I could not update my project with newest CI, and someone else may encounter the same situation.

So I suggest replacing core file according to CI version. It would be suitable to get the content of original 'CodeIgniter.php' ,parse the version, and then load matched core files.

A plus question, is there any way to contribute to ci-phpunit-test? I'd like to help improving it.^_^

@kenjis
Copy link
Owner

kenjis commented May 27, 2016

CI 3.0.x means just minor bug fixes. So I believe there are no problems.
But I am also not sure. You're logically right.
I can say, you're the first person who points it out. But you still do not find any real problem.

I accept Pull Requests. See https://github.com/kenjis/ci-phpunit-test/blob/master/CONTRIBUTING.md

@tianhe1986
Copy link
Author

Yes, you are right. It's just a possibility now. I'll provide more detailed feedback while encountering real problems.

What would you do with CI's minor version upgrading, which may add minor features or significant fixes ?

@kenjis
Copy link
Owner

kenjis commented May 28, 2016

When a new CI version is released, I have to provide new version of ci-phpunit-test if the core files below changes:
https://github.com/kenjis/ci-phpunit-test/tree/master/application/tests/_ci_phpunit_test/replacing/core
This is because ci-phpunit-test does not change your CI core files, but it has changed core files above and just loads them instead of the real CI core files.
Fortunately, core classes that are replaced are just 2 classes (Loader and Input).

But I think there are no significant changes in them. At least in 3.0.x.

After all, if CI changes, ci-phpunit-test have to change, too.

And if you write unit tests, the changes of CI does not effect your tests.

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

No branches or pull requests

2 participants