From 23a2d3251d88061bce9ff02ca426b1e175767d4b Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 21 Mar 2010 22:18:26 +0000 Subject: Added class encapsulating bridge DB. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6628 67b53d14-2c14-4ace-a08f-0dab2b34000c --- test/BridgeTest.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 test/BridgeTest.php (limited to 'test') diff --git a/test/BridgeTest.php b/test/BridgeTest.php new file mode 100644 index 0000000..3036f2b --- /dev/null +++ b/test/BridgeTest.php @@ -0,0 +1,57 @@ +setExpectedException($ex); + $this->assertEquals($expected, $bridge->getPostId($message_id)); + } + + public function providerGetPostId() { + return array( + array('bogus', null, 'PHPUnit_Framework_Error'), + ); + } + + /** + * @dataProvider providerRegisterMessage + */ + public function testRegisterMessage($msg, $expected, $ex) { + $this->markTestIncomplete(); +# $bridge = new Bridge(); +# if ($ex) $this->setExpectedException($ex); +# $this->assertEquals($expected, $bridge->registerMessage($msg)); + } + + public function providerRegisterMessage() { + return array( + ); + } + + /** + * @dataProvider providerGetDefaultForumId + */ + public function testGetDefaultForumId($list, $expected, $ex) { + $bridge = new Bridge(); + if ($ex) $this->setExpectedException($ex); + $this->assertEquals($expected, $bridge->getDefaultForumId($list)); + } + + public function providerGetDefaultForumId() { + return array( + array('bogus', null, 'PHPUnit_Framework_Error'), +# array('messages@forums.vassalengine.org', 2, null), + ); + } + + +} + +?> -- cgit v1.2.3