示例#1
0
 public function testValidate()
 {
     // defaults to false
     $this->assertEquals(false, $this->fixture->doValidation());
     $this->fixture->setValidate(true);
     $this->assertEquals(true, $this->fixture->doValidation());
     $this->fixture->setValidate(false);
     $this->assertEquals(false, $this->fixture->doValidation());
 }