Static analysis of unittest code.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-07-10 09:20:36 +00:00
parent 534c8cdbe6
commit 3b9cea1c70
6 changed files with 81 additions and 65 deletions

View File

@ -1,4 +1,8 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace App\Tests;
use PHPUnit\Framework\TestCase;
use App\Notification\Notification;
@ -7,7 +11,8 @@ use PHPUnit\Framework\Attributes\DataProvider;
final class NotificationTest extends TestCase
{
static $config = ['type'=>'ntfy', 'domain'=>'https://test.com', 'topic'=>'testing'];
/** @var array<string, string> */
private static array $config = ['type' => 'ntfy', 'domain' => 'https://test.com', 'topic' => 'testing'];
public function testloadSingle(): void
{
@ -47,4 +52,4 @@ final class NotificationTest extends TestCase
$mock->expects($this->once())->method('send');
$dut->send('title', 'topic');
}
}
}