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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -