public function testCastPropertiesInt() { $property = '123'; $expectedProperty = 123; $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->castPropertiesInt(['property']); }