--TEST-- marc_field_005: Test method getContents --SKIPIF-- --FILE-- getSubfields('a'); // we might get an array back; in this case, we want the first subfield if (is_array($sf)) { $field->insertSubfield($subfield1, $sf[0], true); } else { $field->insertSubfield($subfield1, $sf, true); } // let's see the results print $field->getContents(); print "\n"; print $field->getContents('###'); print "\n"; ?> --EXPECT-- a littlenothingeverything a little###nothing###everything