From 54551bc4cb0dee8549c229d18fca3bf3dc0d5c48 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 31 Oct 2010 20:47:26 +0000 Subject: No longer used. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7430 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/MailmanLib.php | 31 ------------------------------- test/MailmanLibTest.php | 45 --------------------------------------------- 2 files changed, 76 deletions(-) delete mode 100644 src/MailmanLib.php delete mode 100644 test/MailmanLibTest.php diff --git a/src/MailmanLib.php b/src/MailmanLib.php deleted file mode 100644 index 3491d91..0000000 --- a/src/MailmanLib.php +++ /dev/null @@ -1,31 +0,0 @@ -. -# - -function read_raw_message($url) { - $input = file_get_contents($url); - if (!$input) { - throw new Exception("No input in $url"); - } - return $input; -} - -?> diff --git a/test/MailmanLibTest.php b/test/MailmanLibTest.php deleted file mode 100644 index 05e475f..0000000 --- a/test/MailmanLibTest.php +++ /dev/null @@ -1,45 +0,0 @@ -. -# - -require_once('PHPUnit/Framework.php'); -require_once('src/MailmanLib.php'); - -class MailmanLibTest extends PHPUnit_Framework_TestCase { - - /** - * @dataProvider provider_read_raw_message - */ - public function test_read_raw_message($url, $expected, $ex) { - if ($ex) $this->setExpectedException($ex); - $this->assertEquals($expected, read_raw_message($url)); - } - - public function provider_read_raw_message() { - return array( - array(__DIR__ . '/empty', null, 'Exception'), - array(__DIR__ . '/bougs', null, 'Exception'), - array(__DIR__ . '/1', file_get_contents(__DIR__ . '/1'), null), - ); - } -} - -?> -- cgit v1.2.3