1
0
mirror of https://github.com/Chouchen/ShikiryuRSS.git synced 2025-10-26 13:13:08 +01:00

🚨 Clean code for linters

This commit is contained in:
2023-04-12 15:28:38 +02:00
parent 08138992fd
commit 3419e7d46c
23 changed files with 185 additions and 260 deletions

View File

@@ -8,22 +8,22 @@ use Shikiryu\SRSS\SRSS;
class ExceptionTest extends TestCase
{
public function testPropertyNotFound()
public function testPropertyNotFound(): void
{
$srss = new SRSS();
$this->expectException(PropertyNotFoundException::class);
$srss->notfound = 'true';
}
public function testRssNotFound()
public function testRssNotFound(): void
{
$this->expectException(UnreadableRSSException::class);
$rss = SRSS::read('not_found.xml');
SRSS::read('not_found.xml');
}
public function testMissingChannel()
public function testMissingChannel(): void
{
$this->expectException(ChannelNotFoundInRSSException::class);
$rss = SRSS::read(__DIR__ . '/resources/invalid-no-channel.xml');
SRSS::read(__DIR__ . '/resources/invalid-no-channel.xml');
}
}