glauberportella/cnab-layouts-parser

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

Summary

Maintainability
B
4 hrs
Test Coverage

Method testJsonSerializeRemessaOk has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

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

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

    There are no issues that match your filters.

    Category
    Status