From 4af20a3cb5c76223f68bed09b09a83a95868fd51 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Jan 2009 12:42:37 +0000 Subject: [PATCH] basic word filter test --- contrib/word_filter/test.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contrib/word_filter/test.php diff --git a/contrib/word_filter/test.php b/contrib/word_filter/test.php new file mode 100644 index 00000000..f1795773 --- /dev/null +++ b/contrib/word_filter/test.php @@ -0,0 +1,16 @@ +assertEqual( + $this->filter("whore"), + "nice lady"); + } + + private function filter($in) { + $bb = new WordFilter(); + $tfe = new TextFormattingEvent($in); + $bb->receive_event($tfe); + return $tfe->formatted; + } +} +?>