Dhii/simple-test

View on GitHub
src/Runner/Runner.php

Summary

Maintainability
A
50 mins
Test Coverage

Method _createResultFromTest has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected function _createResultFromTest(Test\TestBaseInterface $test, $message, $status, $assertionCount, $runnerCode, $time, $memory)
Severity: Major
Found in src/Runner/Runner.php - About 50 mins to fix

    The method _createResultFromTest is not named in camelCase.
    Open

        protected function _createResultFromTest(Test\TestBaseInterface $test, $message, $status, $assertionCount, $runnerCode, $time, $memory)
        {
            return new Test\Result(
                    $test->getCaseName(),
                    $test->getMethodName(),
    Severity: Minor
    Found in src/Runner/Runner.php by phpmd

    CamelCaseMethodName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name methods.

    Example

    class ClassName {
        public function get_name() {
        }
    }

    Source

    The method _createResultSet is not named in camelCase.
    Open

        protected function _createResultSet($results)
        {
            return new Test\ResultSet($results, $this->_getStatAggregator());
        }
    Severity: Minor
    Found in src/Runner/Runner.php by phpmd

    CamelCaseMethodName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name methods.

    Example

    class ClassName {
        public function get_name() {
        }
    }

    Source

    There are no issues that match your filters.

    Category
    Status