SimpleReporterDecorator::__construct PHP Method

__construct() public method

Mediates between the reporter and the test case.
public __construct ( SimpleScorer $reporter )
$reporter SimpleScorer Reporter to receive events.
    public function __construct($reporter)
    {
        $this->reporter = $reporter;
    }

Usage Example

示例#1
0
 /**
  * Selects the test case or group to be run, and optionally a specific test.
  *
  * @param SimpleScorer $reporter    Reporter to receive events.
  * @param string $just_this_case    Only this case or group will run.
  * @param string $just_this_test    Only this test method will run.
  */
 public function __construct($reporter, $just_this_case = false, $just_this_test = false)
 {
     if (isset($just_this_case) && $just_this_case) {
         $this->just_this_case = strtolower($just_this_case);
         $this->off();
     } else {
         $this->on();
     }
     if (isset($just_this_test) && $just_this_test) {
         $this->just_this_test = strtolower($just_this_test);
     }
     parent::__construct($reporter);
 }
All Usage Examples Of SimpleReporterDecorator::__construct