Beispiel #1
0
 public function testSetStepString()
 {
     $step = '0.01';
     $this->_validator->setStep($step);
     $this->assertAttributeSame((float) $step, 'step', $this->_validator);
 }
Beispiel #2
0
 /**
  * Ensures that set/getStep() works
  */
 public function testCanSetStepValue()
 {
     $this->_validator->setStep(2);
     $this->assertEquals('2', $this->_validator->getStep());
 }