当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleReporter::paintException方法代码示例

本文整理汇总了PHP中SimpleReporter::paintException方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintException方法的具体用法?PHP SimpleReporter::paintException怎么用?PHP SimpleReporter::paintException使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleReporter的用法示例。


在下文中一共展示了SimpleReporter::paintException方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: paintException

 function paintException($message)
 {
     parent::paintException($message);
     echo PHP_EOL;
     echo "       Exception ", $this->getExceptionCount(), "!", PHP_EOL;
     echo "       {$message->getMessage()}";
 }
开发者ID:hiroki-ta,项目名称:my.project,代码行数:7,代码来源:TextDetailReporter.php

示例2: paintException

 /**
  *  例外
  *
  *  @access public
  * @param string   $message    メッセージ
  */
 function paintException($message)
 {
     parent::paintException($message);
     $breadcrumb = $this->getTestList();
     $test = $breadcrumb[2];
     array_shift($breadcrumb);
     $this->report[] = array('type' => 'Exception', 'test' => $test, 'breadcrumb' => $breadcrumb, 'message' => $message);
 }
开发者ID:hiroki-namekawa,项目名称:test-upr,代码行数:14,代码来源:Ethna_UnitTestReporter.php

示例3: paintException

 function paintException($message)
 {
     parent::paintException($message);
     print $this->_getIndent(1);
     print "<" . $this->_namespace . "exception>";
     print $this->toParsedXml($message);
     print "</" . $this->_namespace . "exception>\n";
 }
开发者ID:BackupTheBerlios,项目名称:phpbase-svn,代码行数:8,代码来源:xml.php

示例4: paintException

 function paintException($message)
 {
     parent::paintException($message);
     $this->_response->addContent("Exception !!\n");
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $this->_response->addContent("\tin " . implode("\n\tin ", array_reverse($breadcrumb)));
     $this->_response->addContent("\n\t " . $message . "\n");
 }
开发者ID:CREASIG,项目名称:lizmap-web-client,代码行数:9,代码来源:jtextrespreporter.class.php

示例5: paintException

 function paintException($exception)
 {
     parent::paintException($exception);
     $str = "<span class=\"exception\">Exception</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $str .= implode(" -&gt; ", $breadcrumb);
     $str .= 'Unexpected exception of type [' . get_class($exception) . '] with message [<strong>"' . $this->_htmlEntities($exception->getMessage()) . '</strong>] in [' . $this->_htmlEntities($exception->getFile()) . ' line ' . $exception->getLine() . "]<br />\n";
     $this->_response->body->append('MAIN', $str);
 }
开发者ID:jelix,项目名称:simpletest-module,代码行数:10,代码来源:jhtmlrespreporter.class.php

示例6: paintException

 function paintException($message)
 {
     parent::paintException($message);
     $str = "<span class=\"exception\">Exception</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $str .= implode(" -&gt; ", $breadcrumb);
     $str .= " -&gt; <strong>" . $this->_htmlEntities($message) . "</strong><br />\n";
     $this->_response->body->append('MAIN', $str);
 }
开发者ID:alienpham,项目名称:helenekling,代码行数:10,代码来源:jhtmlrespreporter.class.php

示例7: paintException

 /**
  *    Paints a PHP error or exception.
  *    @param string $message        Message is ignored.
  *    @access public
  *    @abstract
  */
 function paintException($message)
 {
     parent::paintException($message);
     $msg = "<span class=\"fail\">Exception</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $msg .= implode("-&gt;", $breadcrumb);
     $msg .= "-&gt;<strong>" . htmlentities($message) . "</strong><br />";
     echo "add_fail('{$msg}');\n";
 }
开发者ID:JackCanada,项目名称:moodle-hacks,代码行数:16,代码来源:webunit_reporter.php

示例8: paintException

 /**
  * Paint exception faildetail to STDERR.
  */
 function paintException($message)
 {
     parent::paintException($message);
     fwrite(STDERR, 'EXCEPTION' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
 }
开发者ID:pyfun,项目名称:dokuwiki,代码行数:8,代码来源:cli_reporter.php

示例9: paintException

 /**
  *    Paints exception as XML.
  * @param Exception $exception Exception to encode.
  */
 public function paintException($exception)
 {
     parent::paintException($exception);
     echo $this->getIndent(1);
     echo '<' . $this->namespace . 'exception>';
     $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']';
     echo $this->toParsedXml($message);
     echo '</' . $this->namespace . "exception>\n";
 }
开发者ID:kitware,项目名称:cdash,代码行数:13,代码来源:xml.php

示例10: paintException

	    function paintException($message) 
	    {
            parent::paintException($message);
            $breadcrumb = $this->getTestList();
			array_shift($breadcrumb);
			$bc = implode(">", $breadcrumb);

			$this->PrintMessage("Exception: {$bc} -> {$message}", true, 'yellow');
        }
开发者ID:rchicoria,项目名称:epp-drs,代码行数:9,代码来源:class.ShellReporter.php

示例11: paintException

 /**
  *    Paints a PHP error or exception.
  *    @param string $message        Message to be shown.
  *    @access public
  *    @abstract
  */
 function paintException($exception)
 {
     parent::paintException($exception);
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     error_log("Exception: \n[1;31m\t" . $this->getExceptionCount() . ") " . $exception->getMessage() . "[0m\n" . "\tin " . substr($exception->getTraceAsString(), 0, strpos($exception->getTraceAsString(), "\n")) . "\n");
 }
开发者ID:nterray,项目名称:tuleap,代码行数:13,代码来源:TestsPluginReporter.class.php

示例12: paintException

 function paintException($exception)
 {
     parent::paintException($exception);
     error_log("Exception: " . $exception);
     $this->terminateAbnormally($exception);
 }
开发者ID:bermi,项目名称:akelos,代码行数:6,代码来源:junit_xml_reporter.php

示例13: paintException

 public function paintException($exception)
 {
     parent::paintException($exception);
     $message = sprintf('Unexpected exception of type [%s] with message [%s] in [%s:%s]', get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine());
     $this->method_status['exceptions'][] = $message;
     printf("<div>" . '<strong>Exception</strong>: %s</div>', $message);
 }
开发者ID:lubosdz,项目名称:simpletest-visual-gui,代码行数:7,代码来源:SimpleHtmlReporter.php

示例14: paintException

 /**
  *    Paints a PHP exception.
  *    @param Exception $exception        Exception to display.
  *    @access public
  */
 function paintException($exception)
 {
     parent::paintException($exception);
     print "<span class=\"fail\">Exception</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']';
     print " -&gt; <strong>" . $this->_htmlEntities($message) . "</strong><br />\n";
     flush();
 }
开发者ID:ivantcholakov,项目名称:Bonfire,代码行数:16,代码来源:my_reporter.php

示例15: paintException

 /**
  * Paints a test exception.
  *
  * @param string $exception The message of the test exception.
  *
  * @return void
  */
 public function paintException($exception)
 {
     parent::paintException($exception);
     print "\n\nEXCEPTION: " . $exception . "\n\n";
 }
开发者ID:CloCkWeRX,项目名称:kort,代码行数:12,代码来源:KortCliReporter.php


注:本文中的SimpleReporter::paintException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。