Static analysis of unittest code.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user