mirror of
https://github.com/php/pecl-search_engine-solr.git
synced 2026-03-23 22:52:07 +01:00
18 lines
318 B
PHP
18 lines
318 B
PHP
--TEST--
|
|
SolrInputDocument::getFieldCount
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once "bootstrap.inc";
|
|
$doc = new SolrInputDocument();
|
|
|
|
$doc->addField('id', 123);
|
|
$doc->addField('cat', 'Software');
|
|
$doc->addField('cat', 'Search Server');
|
|
$doc->addField('features', 'Software');
|
|
|
|
var_dump($doc->getFieldCount());
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(3)
|