📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 05:32:04
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-solr_2.9.3-1.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-solr_2.9.3-1.el8/tests
🔄 Refresh
✏️
Editing: 050.solrinputdocument_addchilddocument_02_error.phpt
Read Only
--TEST-- SolrInputDocument::addChildDocument()/SolrInputDocument::addChildDocuments() - Expected SolrIllegalArgumentException --FILE-- <?php require_once "bootstrap.inc"; $doc = new SolrInputDocument(); $child1 = new SolrInputDocument(); $child2 = new SolrInputDocument(); $doc->addField('id', 1123); $doc->addField('features', "PHP Client Side"); $doc->addField('features', "Fast development cycles"); $doc->cat = 'Information Technology'; try { $doc->addChildDocument($child1); } catch (SolrIllegalArgumentException $e) { echo $e->getMessage(). PHP_EOL; } $children = array($child1, $child2); try { $doc->addChildDocuments($children); } catch (SolrIllegalArgumentException $e) { echo $e->getMessage(). PHP_EOL; } ?> --EXPECT-- Child document has no fields SolrInputDocument number 1 has no fields
💾 Save Changes
❌ Cancel