chrisandchris/passive-record-orm

View on GitHub
src/ChrisAndChris/Common/RowMapperBundle/Tests/Services/Query/ExtendedBuilderTest.php

Summary

Maintainability
D
2 days
Test Coverage

File ExtendedBuilderTest.php has 457 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace ChrisAndChris\Common\RowMapperBundle\Tests\Services\Query;

use ChrisAndChris\Common\RowMapperBundle\Exceptions\MalformedQueryException;
use ChrisAndChris\Common\RowMapperBundle\Exceptions\MissingParameterException;

    ExtendedBuilderTest has 22 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ExtendedBuilderTest extends AbstractBuilderTest
    {
    
        public function testSelect()
        {

      Method testAppendMultipleWrongInput has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function testAppendMultipleWrongInput()
          {
              $builder = $this->getBuilder();
              $array = [0];
              try {

        Method testUpdates has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function testUpdates()
            {
                $builder = $this->getBuilder();
        
                $builder->updates(

          Method testAppendMultiple has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function testAppendMultiple()
              {
                  $builder = $this->getBuilder();
                  $array = [0];
                  $builder->each(

            Method testIf has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function testIf()
                {
                    $builder = $this->getBuilder();
            
                    $builder->_if(true)

              Method testNestedIf has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function testNestedIf()
                  {
                      $builder = $this->getBuilder();
              
                      // @formatter:off

                Method testValuesStatement has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function testValuesStatement()
                    {
                        $builder = $this->getBuilder();
                        $fieldValues = [
                            [

                  There are no issues that match your filters.

                  Category
                  Status