Test


A library for conducting unit tests. You can read more about test-driven development in Outlast Framework here.


Properties

No public properties available.


notice()

Your unit tests can throw notices at anytime. This is useful to notify the developer of deprecated functionality or other non-essential recommendations.

You can throw notices within any of your testing methods by calling the test library’s notice method:

$this->zajlib->test->notice("Something is not right in your code because it calls this and that. You should fix it!");

Keep in mind that notices are displayed outside of their context and do not refer back to either the test name or the line number. You need to add this information in your notice message (if it is needed).

Also, note that this is different from PHP notices. These notices are displayed ONLY during the test run at http://www.example.com/update/test/.

Outlast Web & Mobile Development (c) 2018 | Privacy Policy |