function test_get_length() { $record = new Dataface_Record('Profiles', array('id' => 3, 'fname' => 'John', 'lname' => 'Smith')); $this->assertEquals(1, $record->getLength('id')); $this->assertEquals(4, $record->getLength('fname')); $record->setValue('id', 10); $this->assertEquals(7, $record->getLength('appointments.position', 1)); $this->assertEquals(8, $record->getLength('appointments.position', 0)); }