Example #1
0
 public function testAccepted()
 {
     $this->assertTrue(v::accepted('on'));
     $this->assertTrue(v::accepted('yes'));
     $this->assertTrue(v::accepted('1'));
     $this->assertFalse(v::accepted('no'));
 }
Example #2
0
 public function validate()
 {
     return v::accepted($this->value());
 }
Example #3
0
 public function result()
 {
     return v::accepted(parent::result()) ? 'true' : 'false';
 }