eisen-dev/eisen_front

View on GitHub
tests/restclientTest.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 10 of 10 total issues

Missing class import via use statement (line '16', column '18').
Open

$s = new restclient();
Severity: Minor
Found in tests/restclientTest.php by phpmd

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class restclientTest extends PHPUnit_Framework_TestCase
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 12 and the first side effect is on line 11.
Open

<?php
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

The class restclientTest is not named in CamelCase.
Open

class restclientTest extends PHPUnit_Framework_TestCase
{
public function testTrueIsTrue()
{
$s = new restclient();
Severity: Minor
Found in tests/restclientTest.php by phpmd

Avoid variables with short names like $s. Configured minimum length is 3.
Open

$s = new restclient();
Severity: Minor
Found in tests/restclientTest.php by phpmd

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

No space found after comma in function call
Open

$ans = $s->restconnect("127.0.0.1","5000","ansible","default");
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

No space found after comma in function call
Open

$ans = $s->restconnect("127.0.0.1","5000","ansible","default");
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

No space found after comma in function call
Open

$ans = $s->restconnect("127.0.0.1","5000","ansible","default");
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer

Class name "restclientTest" is not in camel caps format
Open

class restclientTest extends PHPUnit_Framework_TestCase
Severity: Minor
Found in tests/restclientTest.php by phpcodesniffer
Category
Status