public function testBasicDebugOutput() { $value = 'test'; $_SERVER['PHP_SELF'] = 'phpunit'; ob_start(); $this->assertContains($value, vsc::d($value)); }
/** * @param $sVarName * @return Base */ public function __get($sVarName) { try { // TODO: use proper reflection return $this->getModel()->{$sVarName}; } catch (\Exception $e) { // most likely the variable doesn't exist vsc::d($e->getTraceAsString()); } }
<?php foreach (get_included_files() as $sFileName) { if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) { echo "\t" . '- ' . $sFileName . "\n"; } } ?> <?php /**/ ?> The matching regular expression for the current URI is: <?php echo $this->getMap()->getRegex(); ?> => <?php echo $this->getMap()->getPath(); ?> <?php /**/ ?> <?php try { $GLOBALS['depth'] = 0; echo "\n"; echo 'Model type: ' . get_class($this->getModel()) . "\n"; echo $this->fetch(dirname(__FILE__) . '/model.php'); echo "\n"; } catch (Exception $e) { vsc::d($e); }