Quality of life things.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Build and test / requirements (push) Failing after 3m48s
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Build and test / requirements (push) Failing after 3m48s
This commit is contained in:
@ -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 [
|
||||
|
Reference in New Issue
Block a user