/**
  * 
  * @param string $rawOutput
  */
 public function setRawOutput($rawOutput)
 {
     $sanitizer = new Sanitizer();
     $this->rawOutput = trim($sanitizer->getSanitizedOutput($rawOutput));
     $this->output = null;
 }
 public function testReplaceInvalidCharactersWithHexReference()
 {
     $sanitizer = new Sanitizer();
     $this->assertEquals('\\x1', $sanitizer->getSanitizedOutput(""));
 }