Пример #1
0
 /**
  * @param \PHPUnit_Framework_TestSuite $suite
  */
 private function addFilterOnSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     $replayListener = new ReplayListener($this->reader);
     $replayListener->startTestSuite($suite);
 }
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     $this->loggerListener->startTestSuite($suite);
     $this->replayListener->startTestSuite($suite);
 }
 public function testStartTestSuite_WhenReaderIsNotValid_TheFilterIsNotCalled()
 {
     $suite = $this->getSuite(array('testToRun', 'testAnotherOne'));
     $listener = new ReplayListener($this->getReader(array(), $this->any(), false));
     $listener->startTestSuite($suite);
     $this->assertCount(2, $suite);
 }