Quality of life things.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Build and test / requirements (push) Failing after 3m48s

This commit is contained in:
2024-02-07 11:00:08 +00:00
parent aed385f5e0
commit 6ce774236e
18 changed files with 226 additions and 1885 deletions

View File

@ -16,6 +16,12 @@ final class NtfyTest extends TestCase
private Ntfy $instance;
private MockObject $client;
public function __construct($name)
{
parent::__construct($name);
$this->setUp();
}
protected function setUp(): void
{
$this->client = $this->createMock(Client::class);
@ -45,7 +51,9 @@ final class NtfyTest extends TestCase
$this->instance->send(str_repeat("t", Ntfy::TITLE_MAX_LENGTH), str_repeat("t", Ntfy::MESSAGE_MAX_LENGTH));
}
/** @return array<int, array<int, string>> */
/**
* @return array<int, array<int, string>>
*/
public static function sendBadParameterProvider(): array
{
return [
@ -75,7 +83,9 @@ final class NtfyTest extends TestCase
$this->assertEquals($topic, $this->instance->getTopic());
}
/** @return array<int, array<int, string>> */
/**
* @return array<int, array<int, string>>
*/
public static function topicBadParameterProvider(): array
{
return [