/** * Wrapper of Var_Dump * @param mixed any kind of eepression * @return void */ function epVarDump($var) { static $vd; if (epIsWebRun()) { include_once 'Var_Dump.php'; Var_Dump::displayInit(array('display_mode' => 'HTML4_Table')); Var_Dump::display($var); } else { var_dump($var); } }
// getting protected 'z' gets exception try { $this->assertTrue($w['z'] === false); } catch (Exception $e) { // !!!simpletest seem to ignore assert in catch block $this->assertTrue($e instanceof epExceptionObject); } // setting protected 'z' gets exception try { $w['z'] = 'ZZZ|ZZZ'; } catch (Exception $e) { // !!!simpletest seem to ignore assert in catch block $this->assertTrue($e instanceof epExceptionObject); } // test foreach $vars = array(); foreach ($w as $var => $value) { $vars[$var] = $value; } // check var number $this->assertTrue(count($vars) == $w->count()); } } if (!defined('EP_GROUP_TEST')) { $t = new epTestObject(); if (epIsWebRun()) { $t->run(new HtmlReporter()); } else { $t->run(new TextReporter()); } }