Exemple #1
0
 public function testRemoveReporter()
 {
     $reporter1 = new BasicConsole();
     $reporter2 = new BasicConsole();
     $this->runner->addReporter($reporter1);
     $this->runner->addReporter($reporter2);
     $this->assertContains($reporter1, $this->runner->getReporters());
     $this->assertContains($reporter2, $this->runner->getReporters());
     $this->runner->removeReporter($reporter1);
     $this->assertNotContains($reporter1, $this->runner->getReporters());
     $this->assertContains($reporter2, $this->runner->getReporters());
 }