public function setFreeField($freeField)
{
if (strlen($freeField) > 128) {
throw new \UnexpectedValueException('O campo livre deve ter, no máximo, 128 caracteres');
}
$this->freeField = $freeField;
}
/** * @test */ public function setFreeFieldThrowsUnexpectedValue() { $this->setExpectedException(\UnexpectedValueException::class); $this->transaction->setFreeField(str_repeat('1', 129)); }