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