/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->object = new TituloEleitoral(); for ($i = 0; $i < $this->object->getLength(); $i++) { $number .= '' . \Sped\Commons\Math::random(0, 9); } $this->object->setValue($number); }