Dhii/simple-test-abstract

View on GitHub

Showing 160 of 160 total issues

The method _afterRunAll is not named in camelCase.
Open

    protected function _afterRunAll($results)
    {
        $this->_getCoordinator()->beforeRunTestList($results, $this);

        return $this;
Severity: Minor
Found in src/Runner/AbstractRunner.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 _getTests is not named in camelCase.
Open

    protected function _getTests()
    {
        return $this->items;
    }
Severity: Minor
Found in src/Suite/AbstractSuite.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 _setAssertionCount is not named in camelCase.
Open

    protected function _setAssertionCount($assertionCount)
    {
        $this->assertionCount = intval($assertionCount);

        return $this;
Severity: Minor
Found in src/Test/AbstractResult.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 _generateTestKey is not named in camelCase.
Open

    protected function _generateTestKey($className, $methodName)
    {
        $key = sprintf('%1$s#%2$s', $className, $methodName);

        return $key;
Severity: Minor
Found in src/Locator/AbstractClassLocator.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 _endsWith is not named in camelCase.
Open

    protected function _endsWith($string, $requiredSuffix)
    {
        $requiredLength = strlen($requiredSuffix);
        $suffix         = substr($string, -$requiredLength, $requiredLength);

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 _validateItem is not named in camelCase.
Open

    protected function _validateItem($item)
    {
        if (!($item instanceof ResultInterface)) {
            throw new UnexpectedValueException(sprintf('Item must be a valid test result'));
        }
Severity: Minor
Found in src/Test/AbstractResultSet.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 _setWriter is not named in camelCase.
Open

    protected function _setWriter(\Dhii\SimpleTest\Writer\WriterInterface $writer)
    {
        $this->writer = $writer;

        return $this;
Severity: Minor
Found in src/Tester/AbstractStatefulTester.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 _setAssertionMaker is not named in camelCase.
Open

    protected function _setAssertionMaker(Assertion\MakerInterface $assertionMaker)
    {
        $this->assertionMaker = $assertionMaker;

        return $this;
Severity: Minor
Found in src/Tester/AbstractStatefulTester.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 _afterRunSuite is not named in camelCase.
Open

    protected function _afterRunSuite(Suite\SuiteInterface $suite)
    {
        $this->_getCoordinatorInstance()->afterRunSuite($suite, $this);

        return $this;
Severity: Minor
Found in src/Tester/AbstractTester.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 _afterRunAll is not named in camelCase.
Open

    protected function _afterRunAll(Test\ResultSetInterface $results)
    {
        $this->_getCoordinatorInstance()->afterRunAllSuites($results, $this);

        return $this;
Severity: Minor
Found in src/Tester/AbstractTester.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 _simpleDebug is not named in camelCase.
Open

    protected function _simpleDebug($object)
    {
        if (is_object($object)) {
            return sprintf('object(%1$s)', get_class($object));
        }
Severity: Minor
Found in src/Writer/AbstractWriter.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 _getAssertionMaker is not named in camelCase.
Open

    protected function _getAssertionMaker()
    {
        return $this->assertionMaker;
    }
Severity: Minor
Found in src/Runner/AbstractRunner.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 _setStatAggregator is not named in camelCase.
Open

    protected function _setStatAggregator(Stats\AggregatorInterface $aggregator)
    {
        $this->statAggregator = $aggregator;

        return $this;
Severity: Minor
Found in src/Runner/AbstractRunner.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 _createResultFromTest is not named in camelCase.
Open

    abstract protected function _createResultFromTest(Test\TestBaseInterface $test, $message, $status, $assertionCount, $runnerCode, $time, $memory);
Severity: Minor
Found in src/Runner/AbstractRunner.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 _getAssertionMaker is not named in camelCase.
Open

    protected function _getAssertionMaker()
    {
        return $this->assertionMaker;
    }

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 _createCoordinator is not named in camelCase.
Open

    abstract protected function _createCoordinator(Writer\WriterInterface $writer);
Severity: Minor
Found in src/Tester/AbstractStatefulTester.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 _getRunnerInstance is not named in camelCase.
Open

    protected function _getRunnerInstance()
    {
        if (is_null($this->_getRunner())) {
            $this->_setRunner($this->_createRunner(
                    $this->_getCoordinatorInstance(),
Severity: Minor
Found in src/Tester/AbstractStatefulTester.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 _createStatAggregator is not named in camelCase.
Open

    abstract protected function _createStatAggregator();
Severity: Minor
Found in src/Tester/AbstractStatefulTester.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 _getCoordinatorInstance is not named in camelCase.
Open

    abstract protected function _getCoordinatorInstance();
Severity: Minor
Found in src/Tester/AbstractTester.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 _normalizePath is not named in camelCase.
Open

    protected function _normalizePath($path)
    {
        $path = trim($path);
        $path = str_replace('\\/', DIRECTORY_SEPARATOR, $path);

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

Severity
Category
Status
Source
Language