Permalink
Browse files

Removed CDF tests from suite - no plans to support this dead format

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Feed_Parser/trunk@272075 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 09ded3e commit 0c32d018b05be466b5d8c8cde074e781988fdd0a @CloCkWeRX CloCkWeRX committed Dec 28, 2008
View
7 samples/feedparsertests/wellformed/cdf/channel_abstract_map_description.xml
@@ -1,7 +0,0 @@
-<!--
-Description: CDF channel abstract maps to description
-Expect: not bozo and feed['description'] == u'Example description'
--->
-<CHANNEL>
- <ABSTRACT>Example description</ABSTRACT>
-</CHANNEL>
View
7 samples/feedparsertests/wellformed/cdf/channel_abstract_map_tagline.xml
@@ -1,7 +0,0 @@
-<!--
-Description: CDF channel abstract maps to tagline
-Expect: not bozo and feed['tagline_detail']['value'] == u'Example description'
--->
-<CHANNEL>
- <ABSTRACT>Example description</ABSTRACT>
-</CHANNEL>
View
6 samples/feedparsertests/wellformed/cdf/channel_href_map_link.xml
@@ -1,6 +0,0 @@
-<!--
-Description: CDF channel href maps to link
-Expect: not bozo and feed['link'] == u'http://www.example.org/'
--->
-<CHANNEL HREF="http://www.example.org/">
-</CHANNEL>
View
6 samples/feedparsertests/wellformed/cdf/channel_href_map_links.xml
@@ -1,6 +0,0 @@
-<!--
-Description: CDF channel href maps to links
-Expect: not bozo and feed['links'][0]['href'] == u'http://www.example.org/'
--->
-<CHANNEL HREF="http://www.example.org/">
-</CHANNEL>
View
7 samples/feedparsertests/wellformed/cdf/channel_title.xml
@@ -1,7 +0,0 @@
-<!--
-Description: CDF channel title
-Expect: not bozo and feed['title'] == u'Example feed'
--->
-<CHANNEL>
- <TITLE>Example feed</TITLE>
-</CHANNEL>
View
9 samples/feedparsertests/wellformed/cdf/item_abstract_map_description.xml
@@ -1,9 +0,0 @@
-<!--
-Description: CDF item abstract maps to description
-Expect: not bozo and entries[0]['description'] == u'Example description'
--->
-<CHANNEL>
-<ITEM>
- <ABSTRACT>Example description</ABSTRACT>
-</ITEM>
-</CHANNEL>
View
9 samples/feedparsertests/wellformed/cdf/item_abstract_map_summary.xml
@@ -1,9 +0,0 @@
-<!--
-Description: CDF item abstract maps to summary
-Expect: not bozo and entries[0]['summary_detail']['value'] == u'Example description'
--->
-<CHANNEL>
-<ITEM>
- <ABSTRACT>Example description</ABSTRACT>
-</ITEM>
-</CHANNEL>
View
8 samples/feedparsertests/wellformed/cdf/item_href_map_link.xml
@@ -1,8 +0,0 @@
-<!--
-Description: CDF item href maps to link
-Expect: not bozo and entries[0]['link'] == u'http://www.example.org/'
--->
-<CHANNEL>
-<ITEM HREF="http://www.example.org/">
-</ITEM>
-</CHANNEL>
View
8 samples/feedparsertests/wellformed/cdf/item_href_map_links.xml
@@ -1,8 +0,0 @@
-<!--
-Description: CDF item href maps to links
-Expect: not bozo and entries[0]['links'][0]['href'] == u'http://www.example.org/'
--->
-<CHANNEL>
-<ITEM HREF="http://www.example.org/">
-</ITEM>
-</CHANNEL>
View
9 samples/feedparsertests/wellformed/cdf/item_title.xml
@@ -1,9 +0,0 @@
-<!--
-Description: CDF item title
-Expect: not bozo and entries[0]['title'] == u'Example item'
--->
-<CHANNEL>
-<ITEM>
- <TITLE>Example item</TITLE>
-</ITEM>
-</CHANNEL>
View
2 tests/convertedtests/AllTests.php
@@ -16,7 +16,6 @@
require_once 'sanitize.php';
require_once 'amp.php';
require_once 'atom.php';
-require_once 'cdf.php';
require_once 'date.php';
require_once 'feedburner.php';
require_once 'itunes.php';
@@ -58,7 +57,6 @@ public static function suite()
$suite->addTestSuite('sanitize_TestCase');
$suite->addTestSuite('amp_TestCase');
$suite->addTestSuite('atom_TestCase');
- $suite->addTestSuite('cdf_TestCase');
$suite->addTestSuite('date_TestCase');
$suite->addTestSuite('feedburner_TestCase');
$suite->addTestSuite('itunes_TestCase');
View
87 tests/convertedtests/cdf.php
@@ -1,87 +0,0 @@
-<?php
-
-require_once dirname(dirname(__FILE__)) . '/XML_Feed_Parser_TestCase.php';
-
-class cdf_TestCase extends XML_Feed_Parser_Converted_TestCase {
-
- function test_channel_abstract_map_description_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_abstract_map_description.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example description', $feed->description);
- }
-
- function test_channel_abstract_map_tagline_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_abstract_map_tagline.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example description', $feed->tagline);
- }
-
- function test_channel_href_map_link_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_href_map_link.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('http://www.example.org/', $feed->link);
- }
-
- function test_channel_href_map_links_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_href_map_links.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('http://www.example.org/', $feed->links(0, 'href'));
- }
-
- function test_channel_title_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/channel_title.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example feed', $feed->title);
- }
-
- function test_item_abstract_map_description_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_abstract_map_description.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example description', $feed->getEntryByOffset(0)->description);
- }
-
- function test_item_abstract_map_summary_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_abstract_map_summary.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example description', $feed->getEntryByOffset(0)->summary);
- }
-
- function test_item_href_map_link_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_href_map_link.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('http://www.example.org/', $feed->getEntryByOffset(0)->link);
- }
-
- function test_item_href_map_links_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_href_map_links.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('http://www.example.org/', $feed->getEntryByOffset(0)->links(0, 'href'));
- }
-
- function test_item_title_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/cdf/item_title.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('Example item', $feed->getEntryByOffset(0)->title);
- }
-}
-?>
View
48 tests/convertedtests/date.php
@@ -4,54 +4,6 @@
class date_TestCase extends XML_Feed_Parser_Converted_TestCase {
- function test_cdf_channel_lastmod_map_date_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_date.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->date);
- }
-
- function test_cdf_channel_lastmod_map_modified_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_modified.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->modified);
- }
-
- function test_cdf_channel_lastmod_map_modified_parsed_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_channel_lastmod_map_modified_parsed.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals(array(2004, 4, 7, 4, 5, 43, 2, 98, 0), $feed->modified_parsed);
- }
-
- function test_cdf_item_lastmod_map_date_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_date.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->getEntryByOffset(0)->date);
- }
-
- function test_cdf_item_lastmod_map_modified_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_modified.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals('2004-04-06T23:05:43-05:00', $feed->getEntryByOffset(0)->modified);
- }
-
- function test_cdf_item_lastmod_map_modified_parsed_1() {
- $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/cdf_item_lastmod_map_modified_parsed.xml');
-
- $feed = new XML_Feed_Parser($content);
-
- $this->assertEquals(array(2004, 4, 7, 4, 5, 43, 2, 98, 0), $feed->getEntryByOffset(0)->modified_parsed);
- }
-
function test_channel_dc_date_1() {
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date.xml');

0 comments on commit 0c32d01

Please sign in to comment.