php - Testing models using Simpletest and CodeIgniter -


i new php world , trying setup tests models. using codeigniter , simpletest. keep getting error:

fatal error: class 'ci_model' not found... 

i assume happens because model extends ci_model. ci_model class has following code:

if ( ! defined('basepath')) exit('no direct script access allowed'); 

so question is: how can test models using simpletest?

your test script needs configure necessary environment. in case, can define basepath:

define('basepath', '/your/path'); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -