Example #1
0
 public function testCastPropertiesFloat()
 {
     $property = '123.456';
     $expectedProperty = 123.456;
     $this->ormMock->expects($this->once())->method('getValue')->with('property')->will($this->returnValue($property));
     $this->ormMock->expects($this->once())->method('setValue')->with('property', $expectedProperty);
     $this->model->castPropertiesFloat(['property']);
 }