/** * @dataProvider boletoProvider */ public function testShouldValiteSizeOurNumberConvenioSizeSeven($pessoa) { list($sacado, $cedente) = $pessoa; $convenio = $this->convenio187Provider(); $boleto = new BoletoBancoBrasil($sacado, $cedente, $convenio); $boleto->setValorDocumento(1.0)->setNumeroDocumento("024588722")->setDataVencimento(new Carbon("2013-11-02"))->gerarCodigoBarraLinhaDigitavel(); $this->assertEquals(17, strlen($boleto->getConvenio()->getNossoNumero())); }