assertEquals( build_post_subject($ltag, $ftag, $subject), $expected ); } public function buildPostSubjectProvider() { return array( array('[l]', '[f]', '', '(no subject)'), array('[l]', '[f]', 'Re:', '(no subject)'), array('[l]', '[f]', 'Subject', 'Subject'), array('[l]', '[f]', 'Re: Subject', 'Subject'), array('[l]', '[f]', 'Re: Re: Re: Subject', 'Subject'), array('[l]', '[f]', '[f] Subject', 'Subject'), array('[l]', '[f]', '[f] [f] Subject', 'Subject'), array('[l]', '[f]', '[f] [f] Subject [f]', 'Subject'), array('[l]', '[f]', '[l] [f] Re: Subject', 'Subject'), array('[l]', '[f]', 'Re: [l] [f] Subject', 'Subject'), array('[l]', '[f]', 'Re: Subject [l][f] Subject', 'Subject Subject') ); } } ?>