/** * @group CoreExt_Locale */ public function testRecuperaRegistroRetornaFloat() { $expectedOptions = array('id' => 1, 'nome' => 'Antunes Jr.', 'sexo' => 1, 'tipoSanguineo' => 4, 'peso' => 12.3); $expected = new CoreExt_ChildEntityStub($expectedOptions); $expected->markOld(); $this->_db->expects($this->once())->method('ProximoRegistro')->will($this->returnValue(TRUE)); $this->_db->expects($this->any())->method('Tupla')->will($this->returnValue($expectedOptions)); $mapper = new CoreExt_ChildEntityDataMapperStub($this->_db); $found = $mapper->find(1); $this->assertEquals(12.3, $expected->peso); }