Example #1
0
 public function testHasProblemsReturnsTrueOnProblems()
 {
     $report = new FileReport(new \SplFileInfo('no_file.xml'));
     $problem = $this->getMockBuilder(ValidationProblem::class)->disableOriginalConstructor()->getMock();
     /** @var ValidationProblem $problem */
     $report->addProblem($problem);
     $this->assertTrue($report->hasProblems());
 }