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

Fatal error: Class 'CI' not found in #2

Closed
rockers007 opened this issue Apr 14, 2016 · 5 comments
Closed

Fatal error: Class 'CI' not found in #2

rockers007 opened this issue Apr 14, 2016 · 5 comments

Comments

@rockers007
Copy link

Started Unit Testing With Downloading latest code of codeigniter-testing-guide

Rakesh@RAKESH-PC e:\xampp\htdocs\CodeIgniter\application\tests
# phpunit.sh  models/home_model_test.php
Welcome to Git (version 1.9.5-preview20150319)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

Fatal error: Class 'CI' not found in E:\xampp\htdocs\CodeIgniter\application\tes
ts\_ci_phpunit_test\replacing\core\CodeIgniter.php on line 384

Fatal error: Class 'CI' not found in E:\xampp\htdocs\CodeIgniter\application\tes
ts\_ci_phpunit_test\replacing\core\CodeIgniter.php on line 384

Rakesh@RAKESH-PC e:\xampp\htdocs\CodeIgniter\application\tests
# phpunit.sh  models/home_model_test.php
Welcome to Git (version 1.9.5-preview20150319)
@kenjis
Copy link
Owner

kenjis commented Apr 14, 2016

The line 384 is for HMVC. Did you install HMVC?

@rockers007
Copy link
Author

Yes,we are using HMVC

@rockers007
Copy link
Author

Now throwing this error,we are using facebook sdk using library file
Fb_connect.php.txt

# phpunit.sh  models/home_model_test.php
Welcome to Git (version 1.9.5-preview20150319)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

An uncaught Exception was encountered

Type:        Facebook\FacebookSDKException
Message:     Session not active, could not store state.
Filename:    E:\xampp\htdocs\CodeIgniter\application\libraries\facebook\src\Face
book\FacebookRedirectLoginHelper.php
Line Number: 227

@rockers007
Copy link
Author

Fb_connect.php.txt

@kenjis
Copy link
Owner

kenjis commented Apr 14, 2016

This book does not use HMVC at all.

Please go to: kenjis/ci-phpunit-test#34

@kenjis kenjis closed this as completed Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants