1--TEST-- 2SolrClient::commit() - Testing commit 3--SKIPIF-- 4<?php 5include 'skip.if.server_not_configured.inc'; 6?> 7--FILE-- 8<?php 9 10require_once "bootstrap.inc"; 11 12$options = array 13( 14 'hostname' => SOLR_SERVER_HOSTNAME, 15 'login' => SOLR_SERVER_USERNAME, 16 'password' => SOLR_SERVER_PASSWORD, 17 'port' => SOLR_SERVER_PORT, 18 'path' => SOLR_SERVER_PATH 19); 20 21$client = new SolrClient($options); 22$updateResponse = $client->commit(); 23print $updateResponse->getRawRequest(); 24$updateResponse = $client->commit(true,false,true); 25print $updateResponse->getRawRequest(); 26 27$updateResponse = $client->commit(true,false,true); 28?> 29--EXPECTF-- 30<?xml version="1.0" encoding="UTF-8"?> 31<commit softCommit="false" waitSearcher="true" expungeDeletes="false"/> 32<?xml version="1.0" encoding="UTF-8"?> 33<commit softCommit="true" waitSearcher="false" expungeDeletes="true"/>