Dhii/simple-test

View on GitHub
src/Locator/ClassLocator.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _matchMethod is not named in camelCase.
Open

    protected function _matchMethod(\ReflectionMethod $method)
    {
        return $this->_stringStartsWith($method->getName(), 'test');
    }
Severity: Minor
Found in src/Locator/ClassLocator.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 _createTest is not named in camelCase.
Open

    protected function _createTest($className, $methodName, $key)
    {
        return new Test\Test($className, $methodName, $key);
    }
Severity: Minor
Found in src/Locator/ClassLocator.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($items)
    {
        return new ResultSet($items);
    }
Severity: Minor
Found in src/Locator/ClassLocator.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 _stringStartsWith is not named in camelCase.
Open

    protected function _stringStartsWith($string, $requiredPrefix)
    {
        $requiredLength = strlen($requiredPrefix);
        $prefix         = substr($string, 0, $requiredLength);

Severity: Minor
Found in src/Locator/ClassLocator.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