コード例 #1
0
 public function run_harness($argv, $argc)
 {
     $this->prepare_harness();
     PHPUnitXt_Utils_Loader::load('PHPUnitXt_Base_Command');
     PHPUnitXt_Base_Command::exec($argv, $this->defaults, $this->blacklist);
 }
コード例 #2
0
<?php

/**
 * @author  Michael Heim
 * @link    http://www.zeilenwechsel.de/
 * @version 1.1.0
 * @license http://www.zeilenwechsel.de/it/code/browse/komodo-phpunit-harness/prod/license.txt
 */
/**
 * Change to support PHPUnit 4+
 * This library is loaded in via phpunit.phar in HarnessSelector.php
 */
//require_once( 'PHPUnit/Runner/Version.php' );
require_once dirname(dirname(__FILE__)) . '/Utils/Loader.php';
PHPUnitXt_Utils_Loader::load('PHPUnitXt_Base_PrinterOptions');
/**
 * Prints the test results in a configurable format.
 */
class PHPUnitXt_Base_Printer extends PHPUnit_TextUI_ResultPrinter implements PHPUnit_Framework_TestListener
{
    /* @var PHPUnitXt_Base_PrinterOptions */
    protected $options;
    protected $all_tests = array();
    protected $all_reports = array();
    /* @var array  paths to be removed from a stack trace; for use with PHPUnit 3.6 */
    protected $blacklist = array();
    public function __construct()
    {
        parent::__construct();
        $this->options = new PHPUnitXt_Base_PrinterOptions();
    }