Abstract Class CriticalI_TestCase

Description

This class exists as a convenience for writing PHPUnit tests for the

criticali framework and packages. Currently its only special behavior is to turn off global variable "backup" operations by PHPUnit. The problem is that some classes in the framework rely on global data (largely related to bootstrapping, notably the default configuration data implementation), and resetting global data without resetting the state of static class members puts things in an inconsistent state. The means if you're using this test case and global data, you're responsible for cleaning up after yourself. Most classes, however, use no global data directly but do rely heavily on the framework which may use a handful of global variables, so this is seems like a fair trade-off.

  • abstract:

Located in /Core/lib/CriticalI/TestCase.php (line 20)

PHPUnit_Framework_TestCase
   |
   --CriticalI_TestCase
Direct descendents
Class Description
Abstract class CriticalI_DBTestCase The DBTestCase class exists as a convenience for writing test cases
Method Summary
 CriticalI_TestCase __construct ([string $name = NULL], [ $data = array()], [string $dataName = ''])
Methods
Constructor __construct (line 27)

Constructor

  • access: public
CriticalI_TestCase __construct ([string $name = NULL], [ $data = array()], [string $dataName = ''])
  • string $name
  • array $data
  • string $dataName

Documentation generated on Wed, 25 Apr 2012 09:46:45 -0700 by phpDocumentor 1.4.3