/** * Constructor for Socket connection * * @param string $message Description of what has gone wrong * @param string $code Error Code * @param \Exception $previous Previous Exception */ public function __construct($message, $code = 0, Exception $previous = null) { parent::__construct($message, $code, $previous); }
public function testConstruct() { $this->assertEquals('My Error Message', $this->object->getMessage()); }