--TEST-- SolrInputDocument::getFieldCount --FILE-- addField('id', 123); $doc->addField('cat', 'Software'); $doc->addField('cat', 'Search Server'); $doc->addField('features', 'Software'); var_dump($doc->getFieldCount()); ?> --EXPECT-- int(3)