File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
use Forensic \FeedParser \Exceptions \InvalidURLException ;
9
9
use Forensic \FeedParser \Exceptions \ResourceNotFoundException ;
10
10
use Forensic \FeedParser \Exceptions \FileNotFoundException ;
11
+ use Forensic \FeedParser \Exceptions \MalformedFeedException ;
12
+ use Forensic \FeedParser \Exceptions \FeedTypeNotSupportedException ;
11
13
12
14
class ParserTest extends TestCase
13
15
{
@@ -18,6 +20,23 @@ public function setup()
18
20
$ this ->_parser = new Parser ();
19
21
}
20
22
23
+ public function testDefaultLanguage ()
24
+ {
25
+ $ this ->assertSame ('en ' , $ this ->_parser ->getDefaultLanguage ());
26
+ }
27
+
28
+ public function testUpdateDefaultLanguage ()
29
+ {
30
+ $ this ->_parser ->setDefaultLanguage ('fr ' );
31
+ $ this ->assertSame ('fr ' , $ this ->_parser ->getDefaultLanguage ());
32
+ }
33
+
34
+ public function testConstructDefaultLanguageOption ()
35
+ {
36
+ $ parser = new Parser ('fr ' );
37
+ $ this ->assertSame ('fr ' , $ parser ->getDefaultLanguage ());
38
+ }
39
+
21
40
public function testInvalidUrl ()
22
41
{
23
42
$ this ->expectException (InvalidURLException::class);
You can’t perform that action at this time.
0 commit comments