當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。