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."); }
public function __construct($encoding) { parent::__construct(); $this->encoding = $encoding; }