From e18ccdc1fdbabd9bb47464e5c993cb7644531458 Mon Sep 17 00:00:00 2001 From: Ben XO <75862+ben-xo@users.noreply.github.com> Date: Thu, 5 Jan 2023 23:02:50 +0000 Subject: [PATCH] Better tests --- test/MixedMediaExampleTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/MixedMediaExampleTest.php b/test/MixedMediaExampleTest.php index ca9fce8..c1682f2 100644 --- a/test/MixedMediaExampleTest.php +++ b/test/MixedMediaExampleTest.php @@ -89,6 +89,16 @@ public function test_podcast_has_correct_overridable_metadata() } + public function test_itunes_type() + { + // generated valid XML + $data = simplexml_load_string(file_get_contents(self::$file)); + $itdtd = "http://www.itunes.com/dtds/podcast-1.0.dtd"; + + // assert itunes:type = serial + $this->assertEmpty($data->channel->children($itdtd)->type); + } + public function test_podcast_has_expected_items_with_default_behaviour(): void { // generated valid XML