glauberportella/cnab-layouts-parser

View on GitHub
tests/unit/remessa/ParserFebrabanPagamentoTest.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method testRemessaPagamentosOk has 147 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testRemessaPagamentosOk()
    {
        $remessaLayout = new Layout(__DIR__.'/../../../config/febraban/cnab240/pagamentos.yml');
        $remessa = new Remessa($remessaLayout);
        $this->assertInstanceOf('CnabParser\Model\Remessa', $remessa);
Severity: Major
Found in tests/unit/remessa/ParserFebrabanPagamentoTest.php - About 5 hrs to fix

    The method testRemessaPagamentosOk() has 173 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

        public function testRemessaPagamentosOk()
        {
            $remessaLayout = new Layout(__DIR__.'/../../../config/febraban/cnab240/pagamentos.yml');
            $remessa = new Remessa($remessaLayout);
            $this->assertInstanceOf('CnabParser\Model\Remessa', $remessa);

    There are no issues that match your filters.

    Category
    Status