_test/util.test.php
Class extends undeclared class \DokuWikiTest
Open
Open
class util_plugin_issuelinks_test extends DokuWikiTest {
- Exclude checks
Reference to undeclared class \DokuWikiTest
Open
Open
parent::setUpBeforeClass();
- Exclude checks
Call to undeclared method \util_plugin_issuelinks_test::assertSame
Open
Open
$this->assertSame($expected_links, $actual_links, $msg);
- Exclude checks
Call to undeclared function \plugin_load()
Open
Open
$helper = plugin_load('helper', 'issuelinks_util');
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class util_plugin_issuelinks_test extends DokuWikiTest {
- Exclude checks
The class util_plugin_issuelinks_test is not named in CamelCase. Open
Open
class util_plugin_issuelinks_test extends DokuWikiTest {
protected $pluginsEnabled = array('issuelinks');
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The parameter $expected_links is not named in camelCase. Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
/** @var helper_plugin_issuelinks_util $helper*/
$helper = plugin_load('helper', 'issuelinks_util');
$actual_links = $helper->parseHTTPLinkHeaders($linkHeader);
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Opening brace of a class must be on the line after the definition Open
Open
class util_plugin_issuelinks_test extends DokuWikiTest {
- Exclude checks
Method name "util_plugin_issuelinks_test::parseHTTPLinkHeaders_testdata" is not in camel caps format Open
Open
public static function parseHTTPLinkHeaders_testdata() {
- Exclude checks
Method name "util_plugin_issuelinks_test::test_parseHTTPLinkHeaders" is not in camel caps format Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
- Exclude checks
Line exceeds 120 characters; contains 158 characters Open
Open
'next' => 'https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=2&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc',
- Exclude checks
Line exceeds 120 characters; contains 441 characters Open
Open
'<https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=2&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc>; rel="next", <https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=1&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc>; rel="first", <https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=2&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc>; rel="last"',
- Exclude checks
Line exceeds 120 characters; contains 168 characters Open
Open
'<https://api.github.com/repositories/48178744/commits?page=2>; rel="next", <https://api.github.com/repositories/48178744/commits?page=23>; rel="last"',
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
Open
'first' => 'https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=1&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc',
- Exclude checks
Line exceeds 120 characters; contains 157 characters Open
Open
'last' => 'https://gitlab.cosmocode.de/api/v3/groups/dokuwiki/projects?id=dokuwiki&page=2&per_page=20&private_token=TGVvcy_D6MMCXxnZALTc'
- Exclude checks
Opening brace should be on a new line Open
Open
public static function parseHTTPLinkHeaders_testdata() {
- Exclude checks
Opening brace should be on a new line Open
Open
public static function setUpBeforeClass() {
- Exclude checks
Class name "util_plugin_issuelinks_test" is not in camel caps format Open
Open
class util_plugin_issuelinks_test extends DokuWikiTest {
- Exclude checks
Opening brace should be on a new line Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
- Exclude checks
The variable $actual_links is not named in camelCase. Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
/** @var helper_plugin_issuelinks_util $helper*/
$helper = plugin_load('helper', 'issuelinks_util');
$actual_links = $helper->parseHTTPLinkHeaders($linkHeader);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $actual_links is not named in camelCase. Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
/** @var helper_plugin_issuelinks_util $helper*/
$helper = plugin_load('helper', 'issuelinks_util');
$actual_links = $helper->parseHTTPLinkHeaders($linkHeader);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $expected_links is not named in camelCase. Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
/** @var helper_plugin_issuelinks_util $helper*/
$helper = plugin_load('helper', 'issuelinks_util');
$actual_links = $helper->parseHTTPLinkHeaders($linkHeader);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The method test_parseHTTPLinkHeaders is not named in camelCase. Open
Open
public function test_parseHTTPLinkHeaders($linkHeader, $expected_links, $msg) {
/** @var helper_plugin_issuelinks_util $helper*/
$helper = plugin_load('helper', 'issuelinks_util');
$actual_links = $helper->parseHTTPLinkHeaders($linkHeader);
- Read upRead up
- Exclude checks
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 parseHTTPLinkHeaders_testdata is not named in camelCase. Open
Open
public static function parseHTTPLinkHeaders_testdata() {
return array(
array(
'<https://api.github.com/repositories/48178744/commits?page=2>; rel="next", <https://api.github.com/repositories/48178744/commits?page=23>; rel="last"',
array(
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}