/**
  * @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);
 }
 public function testInsereRegistros()
 {
     $child = new CoreExt_ChildEntityStub(array('nome' => 'Nascimento Jr.'));
     $childMapper = new CoreExt_ChildEntityDataMapperStub();
     $childMapper->save($child);
     $parent = new CoreExt_ParentEntityStub(array('nome' => 'Fernando Nascimento', 'filho' => 3));
     $parentMapper = new CoreExt_ParentEntityDataMapperStub();
     $parentMapper->save($parent);
     $parent = $parentMapper->find(3);
     $child = $childMapper->find(3);
     $this->assertEquals($child, $parent->filho);
 }