tests/TickTest.php
Avoid using static access to class '\Codeception\Util\Debug' in method 'setUpBeforeClass'. Open
Open
Debug::debug(__CLASS__ . ' has ' . \count(self::$files) . ' files');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class TickTest extends \Codeception\Test\Unit
- Exclude checks
Method name "_before" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _before()
- Exclude checks
Method name "_after" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _after()
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks