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
Post a Comment