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


PHP TextReporter::paintGroupStart方法代码示例

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


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

示例1: paintGroupStart

 /**
  * Signals / Paints the beginning of a TestSuite executing.
  * Starts the timer for the TestSuite execution time.
  *
  * @param 
  * @return void
  */
 function paintGroupStart($test_name, $size)
 {
     if (empty($this->_timeStart)) {
         $this->_timeStart = $this->_getTime();
     }
     parent::paintGroupStart($test_name, $size);
 }
开发者ID:evrard,项目名称:cakephp2x,代码行数:14,代码来源:cake_text_reporter.php

示例2: paintGroupStart

 function paintGroupStart($test_name, $size)
 {
     parent::paintGroupStart($test_name, $size);
     //TODO: make this less fragile
     if (!$this->first_group_test && strpos($test_name, "Group test in") === 0) {
         $this->first_group_test = true;
         print "=========== {$test_name} ===========\n";
     }
 }
开发者ID:knevcher,项目名称:limb,代码行数:9,代码来源:lmbTestShellReporter.class.php

示例3: paintGroupStart

 /**
  * Display the start of each test case
  *
  * @param string $test_case
  * @param int $size
  */
 function paintGroupStart($test_case, $size)
 {
     parent::paintGroupStart($test_case, $size);
     print "\nTest Case: {$test_case}\n";
 }
开发者ID:5haman,项目名称:knowledgetree,代码行数:11,代码来源:test.php

示例4: paintGroupStart

    /**
     *    Paints the start of a group test. Will also paint
     *    the page header and footer if this is the
     *    first test. Will stash the size if the first
     *    start.
     *    @param string $test_name   Name of test that is starting.
     *    @param integer $size       Number of test cases starting.
     *    @access public
     */
    function paintGroupStart($test_name, $size) {
        parent::paintGroupStart($test_name, $size);
        if ($this->group_depth == 0) {
            //echo $test_name."\n";
            //ob_start();
            $this->_groupSize = $size;
        } else if ($this->group_depth == 1) {
            // echo $test_name."\n";
            //ob_start();
            $this->_out[$this->group_depth] = array();
            $this->_starttime = time()+microtime(true);
            $this->fileName = $test_name;

            //$this->group_tests[] = array('size'=>$size,'passed'=>0,'failed'=>0,'tests'=>array());
            //$this->current_group = &$this->group_tests[count($this->group_tests)-1];
        } else if ($this->group_depth == 2) {
            $this->suiteName = $test_name;


        } else if ($this->group_depth == 3) {
            //echo $test_name."\n";
            //ob_start();

            $this->_startsubtime = time()+microtime(true);
            $this->testFileName = $test_name;

            //$this->current_group['tests'][] = array('size'=>$size,'passed'=>0,'failed'=>0,'tests'=>array());
            //$this->current_group = $this->current_group['tests'][count($this->current_group['tests'])-1];
        } else if ($this->group_depth ==4) {
            $this->testFileName = $test_name;

        } else {
            //$this->testSuiteName = $test_name;
            //$this->testFileName = $test_name;
        }
        $this->group_depth++;
    }
开发者ID:joeymetal,项目名称:v1,代码行数:46,代码来源:xmlreporter.php


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