示例#1
0
 public function testUrl()
 {
     $expect = array(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 'http://testing.co', 'http://testing.co', null, null, null, null, null, null, null);
     foreach ($this->tests as $index => $value) {
         $this->assertSame($expect[$index], Filter::url($value), "Test index: {$index}");
     }
     $this->assertSame($expect, call_user_func_array('\\Filter\\Filter::url', $this->tests));
 }