/** * @test */ public function addSkippedTestOutputsHtmlSpecialcharedExceptionMessage() { $message = 'a<b>Test</b>Name'; /** @var $testCase PHPUnit_Framework_TestCase|PHPUnit_Framework_MockObject_MockObject */ $testCase = $this->getMock('PHPUnit_Framework_TestCase', array('run'), array('aTestName')); $exception = new Exception($message); $time = 0.0; $this->fixture->addSkippedTest($testCase, $exception, $time); $this->assertContains(htmlspecialchars($message), $this->outputService->getCollectedOutput()); $this->assertNotContains($message, $this->outputService->getCollectedOutput()); }