Unit Test Tutorial 2

From Joomla! Documentation

Revision as of 22:08, 18 April 2010 by Ian (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Looking at the Unit Test Class

In our first unit test, we create a single test. This test was a part of a presumed preexisting test class. Although an individual test can be contained in a single method, these methods have to be a part of a test class.

Unit Test classes generally inherit from the class 'PHPUnit_Framework_TestCase'.