[TESTS] Add coverage ignore flags to trivial methods

This commit is contained in:
Hugo Sales 2021-08-16 17:08:29 +01:00
parent fe86735b8b
commit aef61e4c73
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 12 additions and 3 deletions

View File

@ -33,6 +33,11 @@ use Symfony\Component\HttpFoundation\Request;
*/
abstract class Module
{
/**
* TODO Handle configuration
*
* @codeCoverageIgnore
*/
public function __construct()
{
// Load Module settings

View File

@ -4,6 +4,11 @@ namespace App\Core\Modules;
use App\Core\Event;
/**
* TODO Plugins aren't tested yet
*
* @codeCoverageIgnore
*/
abstract class Plugin extends Module
{
public function __construct()
@ -13,8 +18,7 @@ abstract class Plugin extends Module
public function name()
{
$cls = get_class($this);
return mb_substr($cls, 0, -6);
return mb_substr(static::class, 0, -6);
}
public function version()