コード例 #1
0
 public function testEncodingException()
 {
     $e = new EncodingException("This is a message for users.", "This is a message for the log.");
     $this->assertEquals($e->getUserMessage(), "This is a message for users.");
     $this->assertEquals($e->getLogMessage(), "This is a message for the log.");
 }
コード例 #2
0
 public function __construct($encoding)
 {
     parent::__construct();
     $this->encoding = $encoding;
 }