glauberportella/cnab-layouts-parser

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

Summary

Maintainability
A
3 hrs
Test Coverage

Method testRemessaOk has 86 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testRemessaOk()
    {
        $remessaLayout = new Layout(__DIR__.'/../../../config/cef/cnab400/cobranca_sigcb.yml');
        $remessa = new Remessa($remessaLayout);
        $this->assertInstanceOf('CnabParser\Model\Remessa', $remessa);
Severity: Major
Found in tests/unit/remessa/ParserCEFCobrancaCnab400Test.php - About 3 hrs to fix

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

        public function testRemessaOk()
        {
            $remessaLayout = new Layout(__DIR__.'/../../../config/cef/cnab400/cobranca_sigcb.yml');
            $remessa = new Remessa($remessaLayout);
            $this->assertInstanceOf('CnabParser\Model\Remessa', $remessa);

    There are no issues that match your filters.

    Category
    Status