示例#1
0
 public function testDummyReporterStopped()
 {
     $reporter = new DummyReporter(true);
     $runner = new Runner();
     $runner->addReporter($reporter);
     $check1 = new AlwaysSuccessCheck();
     $check2 = new AlwaysSuccessCheck();
     $runner->addCheck($check1);
     $runner->addCheck($check2);
     $result = $runner->run();
     $this->assertFalse($result->offsetExists($check2));
 }