From 2a48068f46885745babf8cbb41dbbc167c57a9e6 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Wed, 23 Dec 2015 13:13:13 +0200 Subject: [PATCH] Issue #3 fault test https://github.com/vearutop/php-obscene-censor-rus/issues/3 --- tests/FilterTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/FilterTest.php b/tests/FilterTest.php index 5ed88fa..7b89610 100644 --- a/tests/FilterTest.php +++ b/tests/FilterTest.php @@ -17,6 +17,11 @@ public function testCensor() $this->assertSame($expected, ObsceneCensorRus::getFiltered($test)); } + public function testWhiteWords() + { + $expected = $test = 'Launch gaunt'; // https://github.com/vearutop/php-obscene-censor-rus/issues/3 + $this->assertSame($expected, ObsceneCensorRus::getFiltered($test)); + } public function testText() { $test = 'Да пошел ты нахуй и в пиzdu huesos, ушлепок ебаный, ебать мой вялый хуй! @@ -70,4 +75,4 @@ public function testAllowed() { -} \ No newline at end of file +}