Example #1
0
 /**
  * CCValidator::false
  */
 public function test_false()
 {
     $validator = new CCValidator(array('1' => 'false', '2' => '0', '3' => false));
     $this->assertFalse($validator->false('1'));
     $this->assertTrue($validator->not_false('1'));
     $this->assertFalse($validator->false('2'));
     $this->assertTrue($validator->false('3'));
 }