Пример #1
0
 public function testFactor()
 {
     $this->_object->setFactor(1);
     $this->assertSame(1.0, $this->_object->getFactor());
     $this->_object->setFactor(1.25);
     $this->assertSame(1.25, $this->_object->getFactor());
     $this->_object->setFactor(true);
     $this->assertSame(1.0, $this->_object->getFactor());
     $this->_object->setFactor('200a');
     $this->assertSame(200.0, $this->_object->getFactor());
 }