summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-10-31 20:47:26 +0000
committeruckelman <uckelman@nomic.net>2010-10-31 20:47:26 +0000
commit54551bc4cb0dee8549c229d18fca3bf3dc0d5c48 (patch)
tree21a6b51b493b0bf26b89d391cfcba802f5ea62f6
parent30aa2396959855c14b1f63e73b286a9974ea7adb (diff)
No longer used.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7430 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/MailmanLib.php31
-rw-r--r--test/MailmanLibTest.php45
2 files changed, 0 insertions, 76 deletions
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 @@
-<?php
-
-#
-# $Id$
-#
-# forum-list bridge
-# Copyright (C) 2010 Joel Uckelman
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-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 @@
-<?php
-
-#
-# $Id$
-#
-# forum-list bridge
-# Copyright (C) 2010 Joel Uckelman
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-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),
- );
- }
-}
-
-?>