Esempio n. 1
0
 public function testInt()
 {
     $expect = array(1, 0, 0, 1, 42, 10, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1011970, 31121970, 12311970, 101070, 127001, 255255255255, PHP_INT_MAX);
     foreach ($this->tests as $index => $value) {
         $this->assertSame($expect[$index], Filter::int($value), "Test index: {$index}");
     }
     $this->assertSame($expect, call_user_func_array('\\Filter\\Filter::int', $this->tests));
 }