* @license PHP License * @package WB * @subpackage unittest */ WBClass::load('WBFormProcessor'); // initilaize patForms WBClass::create('patForms', array('init' => true)); /** * form processor helper */ class formProcSimple extends WBFormProcessor { protected function getFormConfigDir() { return 'unittest'; } } class formProcArray extends WBFormProcessor { } /** * Unit Test * * * * @version 0.1.0 * @package WB * @subpackage unittest */ class TestCasePat_Forms extends UnitTestCase { /** * request * @var WBRequest */ protected $req; /** * keep error reporting level */ protected $oldErrorReportingLevel; /** * set up error reporting level */ public function __construct() { $this->req = WBClass::create('WBRequest'); $this->oldErrorReportingLevel = error_reporting(E_ALL); } /** * reset error reporting level */ public function __destruct() { $this->req->import(array('save' => null)); error_reporting($this->oldErrorReportingLevel); } } ?>