diff --git a/tests/Formats/M3uFormatTest.php b/tests/Formats/M3uFormatTest.php new file mode 100644 index 00000000..22743e66 --- /dev/null +++ b/tests/Formats/M3uFormatTest.php @@ -0,0 +1,29 @@ +formatData('M3u', $this->loadSample($path)); + + $expected = file_get_contents(self::PATH_EXPECTED . $name . '.m3u'); + $this->assertEquals($expected, $data); + } +} + diff --git a/tests/Formats/samples/expectedM3uFormat/feed.common.m3u b/tests/Formats/samples/expectedM3uFormat/feed.common.m3u new file mode 100644 index 00000000..fcd71879 --- /dev/null +++ b/tests/Formats/samples/expectedM3uFormat/feed.common.m3u @@ -0,0 +1 @@ +#EXTM3U diff --git a/tests/Formats/samples/expectedM3uFormat/feed.empty.m3u b/tests/Formats/samples/expectedM3uFormat/feed.empty.m3u new file mode 100644 index 00000000..fcd71879 --- /dev/null +++ b/tests/Formats/samples/expectedM3uFormat/feed.empty.m3u @@ -0,0 +1 @@ +#EXTM3U diff --git a/tests/Formats/samples/expectedM3uFormat/feed.emptyItems.m3u b/tests/Formats/samples/expectedM3uFormat/feed.emptyItems.m3u new file mode 100644 index 00000000..fcd71879 --- /dev/null +++ b/tests/Formats/samples/expectedM3uFormat/feed.emptyItems.m3u @@ -0,0 +1 @@ +#EXTM3U diff --git a/tests/Formats/samples/expectedM3uFormat/feed.microblog.m3u b/tests/Formats/samples/expectedM3uFormat/feed.microblog.m3u new file mode 100644 index 00000000..fcd71879 --- /dev/null +++ b/tests/Formats/samples/expectedM3uFormat/feed.microblog.m3u @@ -0,0 +1 @@ +#EXTM3U