mirror of
https://github.com/Chouchen/ShikiryuRSS.git
synced 2026-11-17 01:01:18 +01:00
✅ Add new exceptions
This commit is contained in:
1 parent
f1816dec0c
commit
cb6fff0dae
8 files changed
+109
-17
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Shikiryu\SRSS\Exception\SRSSException;
|
||||
use Shikiryu\SRSS\Exception\UnreadableRSSException;
|
||||
use Shikiryu\SRSS\SRSS;
|
||||
|
||||
class BasicReaderTest extends TestCase
|
||||
@@ -17,12 +18,6 @@ class BasicReaderTest extends TestCase
|
||||
self::assertTrue($rss->isValid());
|
||||
}
|
||||
|
||||
public function testRssNotFound()
|
||||
{
|
||||
$this->expectException(SRSSException::class);
|
||||
$rss = SRSS::read('not_found.xml');
|
||||
}
|
||||
|
||||
public function testSpecificationExampleRSS()
|
||||
{
|
||||
$rss = SRSS::read(__DIR__.'/resources/harvard.xml');
|
||||
|
||||
Reference in new issue
Block a user