You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
We made Unit Testing easy and pretty. The only thing you need to do is write your unit tests. To do so, go to application/models/unit_model.php and create the unit tests in the appropriate places. When you're done, all you need to do is call index.php/unit from your browser to generate a unit test report.
Writing a unit test
You need to place all your unit tests into application/models/unit_model.php.
Write your tests in the following manner in the function retrieve_tests()
* **rv** represents the returned value by the function
* **ev** is the expected value from _rv_
* You can set this to a true value or a type match.
* Available type matches.
* is_object, is_string, is_bool, is_true, is_false, is_int, is_numeric, is_float, is_double, is_array, is_null
* **t** is the test name, this can be anything.
* **n** is notes for the test, describe what it does.