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