Skip to content

Commit

Permalink
Removed CDF tests from suite - no plans to support this dead format
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/XML_Feed_Parser/trunk@272075 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
CloCkWeRX committed Dec 28, 2008
1 parent 09ded3e commit 0c32d01
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 213 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions samples/feedparsertests/wellformed/cdf/channel_title.xml

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions samples/feedparsertests/wellformed/cdf/item_href_map_link.xml

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions samples/feedparsertests/wellformed/cdf/item_title.xml

This file was deleted.

2 changes: 0 additions & 2 deletions tests/convertedtests/AllTests.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
require_once 'sanitize.php'; require_once 'sanitize.php';
require_once 'amp.php'; require_once 'amp.php';
require_once 'atom.php'; require_once 'atom.php';
require_once 'cdf.php';
require_once 'date.php'; require_once 'date.php';
require_once 'feedburner.php'; require_once 'feedburner.php';
require_once 'itunes.php'; require_once 'itunes.php';
Expand Down Expand Up @@ -58,7 +57,6 @@ public static function suite()
$suite->addTestSuite('sanitize_TestCase'); $suite->addTestSuite('sanitize_TestCase');
$suite->addTestSuite('amp_TestCase'); $suite->addTestSuite('amp_TestCase');
$suite->addTestSuite('atom_TestCase'); $suite->addTestSuite('atom_TestCase');
$suite->addTestSuite('cdf_TestCase');
$suite->addTestSuite('date_TestCase'); $suite->addTestSuite('date_TestCase');
$suite->addTestSuite('feedburner_TestCase'); $suite->addTestSuite('feedburner_TestCase');
$suite->addTestSuite('itunes_TestCase'); $suite->addTestSuite('itunes_TestCase');
Expand Down
87 changes: 0 additions & 87 deletions tests/convertedtests/cdf.php

This file was deleted.

48 changes: 0 additions & 48 deletions tests/convertedtests/date.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,54 +4,6 @@


class date_TestCase extends XML_Feed_Parser_Converted_TestCase { 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() { function test_channel_dc_date_1() {
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date.xml'); $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/date/channel_dc_date.xml');


Expand Down

0 comments on commit 0c32d01

Please sign in to comment.