/** * Initializes the class with the given parameters. * * @param string $controlId */ public function __construct($controlId = null) { parent::__construct($controlId); $this->setPageSize(static::DEFAULT_PAGE_SIZE); $this->setReturnFormat(static::DEFAULT_RETURN_FORMAT); }
/** * @covers Intacct\Functions\AbstractFunction::setControlId * @expectedException InvalidArgumentException * @expectedExceptionMessage controlid must be between 1 and 256 characters in length */ public function testMaximumLengthControlId() { $controlId = "12345678901234567890123456789012345678901234567890" . "123456789012345678901234567890123456789012345678901234567890" . "123456789012345678901234567890123456789012345678901234567890" . "123456789012345678901234567890123456789012345678901234567890" . "123456789012345678901234567"; $this->object->setControlId($controlId); }