<?php

namespace Brazanation\Documents\Tests\StateRegistration;

use Brazanation\Documents\AbstractDocument;
use Brazanation\Documents\StateRegistration;
use Brazanation\Documents\StateRegistration\Tocantins;
use Brazanation\Documents\Tests\DocumentTestCase;

class TocantinsTest extends DocumentTestCase
{
    public function createDocument(string $number) : AbstractDocument
    {
        return new StateRegistration($number, new Tocantins());
    }

    public function createDocumentFromString(string $number)
    {
        return StateRegistration::createFromString($number, Tocantins::SHORT_NAME);
    }

    public function provideValidNumbers() : array
    {
        return [
            ['29010227836'],
            ['290406340'],
            ['293855242'],
            ['29032038-0'],
            ['29074854-2'],
            ['29380563-6']
        ];
    }

    public function provideValidNumbersAndExpectedFormat() : array
    {
        return [
            ['29010227836', '29.01.022.783-6'],
        ];
    }

    public function provideEmptyData() : array
    {
        return [
            [Tocantins::LONG_NAME, ''],
            [Tocantins::LONG_NAME, null],
        ];
    }

    public function provideInvalidNumber() : array
    {
        return [
            [Tocantins::LONG_NAME, '1111111111'],
            [Tocantins::LONG_NAME, '00000000021464'],
        ];
    }
}
