From 6a5ea85af78be848137819d92c3691c1fd592e7d Mon Sep 17 00:00:00 2001 From: uckelman Date: Sat, 24 Apr 2010 16:38:27 +0000 Subject: Added test for un-BBCode class. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6732 67b53d14-2c14-4ace-a08f-0dab2b34000c --- test/unbbcodeTest.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 test/unbbcodeTest.php (limited to 'test/unbbcodeTest.php') diff --git a/test/unbbcodeTest.php b/test/unbbcodeTest.php new file mode 100644 index 0000000..adad3c3 --- /dev/null +++ b/test/unbbcodeTest.php @@ -0,0 +1,50 @@ +$run); +} +catch (Exception \$e) { + \$result = serialize(\$e); +} + +print \$result; +EOF; + + $result = unserialize(exec('php -r \'' . $prog . '\'')); + + if ($result instanceof Exception) { + throw $result; + } + + return $result; + } + + /** + * @dataProvider provider_bbcode_second_pass + */ + public function test_bbcode_second_pass($msg, $uid, $bitfield, + $expected, $ex) { + + + } + + public function provider_bbcode_second_pass() { + return array( + array('[b]Test[/b]', '', false, 'Test', null) + ); + } +?> -- cgit v1.2.3