From a6c7607d5882fb0de7d23791b11c69f2fca04aa4 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 27 Feb 2012 03:07:24 +0100 Subject: build_email_subject passes tests now. --- test/build_email_test.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'test/build_email_test.php') diff --git a/test/build_email_test.php b/test/build_email_test.php index d441627..ae88388 100644 --- a/test/build_email_test.php +++ b/test/build_email_test.php @@ -1,7 +1,5 @@ assertEquals( + $expected, + build_email_subject($ftag, $re, $subject) + ); + } + + public function build_email_subject_data() { + return array( + array('[f]', false, '', '[f] (no subject)'), + array('[f]', true, '', 'Re: [f] (no subject)'), + array('[f]', false, 'Subject', '[f] Subject'), + array('[f]', true, 'Subject', 'Re: [f] Subject'), + ); + } + protected $default_headers = array( 'To' => 'messages@vassalengine.org', 'From' => 'Joel Uckelman ', -- cgit v1.2.3