Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soplwang committed Aug 19, 2013
1 parent 2d37713 commit 23eb34a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Add words to compiler
<?php
$r = badwords_compiler_create(BADWORDS_ENCODING_UTF8, True);
$a = badwords_compiler_append($r, 'word', 'replace');
$b = badwords_compiler_append($r, array('www'=>'xxx', 'ttt'=>'vvv'));
print "$a,$b";
$b = badwords_compiler_append($r, '', '');
$c = badwords_compiler_append($r, array('www'=>'xxx', 'ttt'=>'vvv'));
$d = badwords_compiler_append($r, array('zzz'=>'xxx'), 'foo');
print "$a,$b,$c,$d";
?>
--EXPECT--
4,6
4,0,6,3

0 comments on commit 23eb34a

Please sign in to comment.