@@ -81,6 +81,20 @@ public function testString()
8181 self ::assertSame ('tom ' , Filters::string ('tom ' ));
8282 self ::assertSame ('tom ' , Filters::stripped ('tom ' ));
8383 self ::assertSame ('abc& ' , Filters::string ('abc& ' ));
84+ self ::assertSame (['abc& ' , '1 ' ], Filters::string (['abc& ' , 1 ]));
85+
86+ // quotes
87+ self ::assertSame ("O\'Reilly? " , Filters::quotes ("O'Reilly? " ));
88+
89+ // email
90+ self ::assertSame ('' , Filters::email ([]));
91+
92+ // url
93+ self ::assertSame ('' , Filters::url ([]));
94+ self ::assertSame ('abc/hi ' , Filters::url ('abc/hi ' ));
95+
96+ // unsafeRaw
97+ self ::assertSame ('abc/hi ' , Filters::unsafeRaw ('abc/hi ' ));
8498 }
8599
86100 public function testNl2br ()
@@ -171,6 +185,7 @@ public function testStr2list()
171185
172186 public function testUnique ()
173187 {
188+ $ this ->assertSame ([1 ], Filters::unique (1 ));
174189 $ this ->assertSame ([1 ], Filters::unique ([1 , 1 ]));
175190 $ this ->assertSame (['a ' , 'b ' ], Filters::unique (['a ' , 'b ' , 'a ' ]));
176191 $ this ->assertSame (['a ' , 2 => 'b ' ], Filters::unique (['a ' , 'a ' , 'b ' , 'a ' ]));
0 commit comments