コード例 #1
0
ファイル: dTest.php プロジェクト: bogdananton/vsc
 public function testBasicDebugOutput()
 {
     $value = 'test';
     $_SERVER['PHP_SELF'] = 'phpunit';
     ob_start();
     $this->assertContains($value, vsc::d($value));
 }
コード例 #2
0
ファイル: ViewA.php プロジェクト: bogdananton/vsc
 /**
  * @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());
     }
 }
コード例 #3
0
ファイル: content.php プロジェクト: bogdananton/vsc
<?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);
}