More tests and refactoring
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-06-15 14:10:17 +00:00
parent 72058335ca
commit f41571cfd2
9 changed files with 92 additions and 38 deletions

View File

@ -0,0 +1,24 @@
<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use App\Notification\Ntfy;
use Ntfy\Server;
use Ntfy\Client;
use Ntfy\Message;
final class NtfyTest extends TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testDoesSomething(): void
{
//Dependency
$client = $this->createStub(Client::class);
$sut = new Ntfy($client);
$client->expects($this->once())->method('send');
$sut->send('title','text');
}
}