Exemplo n.º 1
0
 function test_values()
 {
     $record = new Dataface_Record('Profiles', array());
     $io = new Dataface_IO('Profiles');
     $io->read(array('id' => 10), $record);
     $this->assertEquals('10', $record->val('id'));
     $rr = new Dataface_RelatedRecord($record, 'appointments');
     $this->assertEquals(10, $rr->val('profileid'));
     $this->assertEquals(10, $rr->getValue('profileid'));
 }