Dhii/simple-test-abstract

View on GitHub

Showing 160 of 160 total issues

The method _setKey is not named in camelCase.
Open

    protected function _setKey($key)
    {
        $this->key = $key;

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

    protected function _getAssertionMakerInstance()
    {
        if (is_null($this->_getAssertionMaker())) {
            $this->_setAssertionMaker($this->_createAssertionMaker());
        }
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 _getClass is not named in camelCase.
Open

    protected function _getClass()
    {
        if (empty($this->class)) {
            return;
        }
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 _getItemUniqueKey is not named in camelCase.
Open

    protected function _getItemUniqueKey($item)
    {
        return $this->_getItemKey($item);
    }
Severity: Minor
Found in src/Locator/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 _addTests is not named in camelCase.
Open

    protected function _addTests($tests)
    {
        foreach ($tests as $_test) {
            $this->addTest($_test);
        }
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 _getRunner is not named in camelCase.
Open

    protected function _getRunner()
    {
        return $this->runner;
    }
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 _basename is not named in camelCase.
Open

    protected function _basename($fileName)
    {
        $basename = basename($fileName);
        $basename = explode('.', $basename);

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

    protected function _setStatus($status)
    {
        $this->status = $status;

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

    protected function _setMessage($message)
    {
        $this->message = $message;

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

    protected function _getItemsForCache()
    {
        return $this->getInnerIterator();
    }

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 TestInterface)) {
            throw new InvalidArgumentException(sprintf('Item must be a valid test'));
        }
Severity: Minor
Found in src/Test/AbstractSource.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 _runAll is not named in camelCase.
Open

    protected function _runAll($tests)
    {
        $this->_validateTestList($tests);

        $results = array();
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 _beforeTest is not named in camelCase.
Open

    protected function _beforeTest(Test\TestBaseInterface $test)
    {
        ob_start();
        $this->_getCoordinator()->beforeRunTest($test, $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 _addTest is not named in camelCase.
Open

    protected function _addTest(Test\TestInterface $test)
    {
        $test->setSuiteCode($this->getCode());
        $this->_addItem($test);

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

    protected function _getWriter()
    {
        return $this->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 _processAssertionResult is not named in camelCase.
Open

    protected function _processAssertionResult($result)
    {
        $result = parent::_processAssertionResult($result);
        ++$this->assertionCount;

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

    abstract protected function _createClassLocator($className);

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

    protected function _getPathsSpecs()
    {
        return $this->pathSpecs;
    }

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