Commit 6497cf15 authored by Bas de Nooijer's avatar Bas de Nooijer Committed by GitHub

Merge pull request #513 from localheinz/fix/case

Fix: Case mismatch
parents 20435f32 e40a01fa
......@@ -223,7 +223,7 @@ class BufferedAdd extends AbstractPlugin
$this->client->getEventDispatcher()->dispatch(Events::PRE_FLUSH, $event);
$this->updateQuery->addDocuments($event->getBuffer(), $event->getOverwrite(), $event->getCommitWithin());
$result = $this->client->update($this->updateQuery, $this->getEndpoint());
$result = $this->client->update($this->updateQuery, $this->getEndPoint());
$this->clear();
$event = new PostFlushEvent($result);
......@@ -251,7 +251,7 @@ class BufferedAdd extends AbstractPlugin
$this->updateQuery->addDocuments($this->buffer, $event->getOverwrite());
$this->updateQuery->addCommit($event->getSoftCommit(), $event->getWaitSearcher(), $event->getExpungeDeletes());
$result = $this->client->update($this->updateQuery, $this->getEndpoint());
$result = $this->client->update($this->updateQuery, $this->getEndPoint());
$this->clear();
$event = new PostCommitEvent($result);
......
......@@ -44,7 +44,7 @@ use Solarium\Core\Plugin\AbstractPlugin;
use Solarium\Exception\InvalidArgumentException;
use Solarium\Exception\RuntimeException;
use Solarium\Core\Event\Events;
use Solarium\Core\Event\preExecuteRequest as preExecuteRequestEvent;
use Solarium\Core\Event\PreExecuteRequest as preExecuteRequestEvent;
/**
* CustomizeRequest plugin.
......
......@@ -40,7 +40,7 @@
namespace Solarium\QueryType\Select\RequestBuilder\Component;
use Solarium\QueryType\Select\Query\Component\Dismax as DismaxComponent;
use Solarium\QueryType\Select\Query\Component\DisMax as DismaxComponent;
use Solarium\Core\Client\Request;
/**
......
......@@ -40,7 +40,7 @@
namespace Solarium\QueryType\Select\RequestBuilder\Component;
use Solarium\QueryType\Select\Query\Component\Edismax as EdismaxComponent;
use Solarium\QueryType\Select\Query\Component\EdisMax as EdismaxComponent;
use Solarium\Core\Client\Request;
/**
......
......@@ -66,7 +66,7 @@ class Loader
if (($fileName = $file->getBasename($this->fileExtension)) == $file->getBasename()) {
continue;
}
$sourceFile = realpath($file->getPathName());
$sourceFile = realpath($file->getPathname());
/** @noinspection PhpIncludeInspection */
require_once $sourceFile;
$includedFiles[] = $sourceFile;
......
......@@ -117,8 +117,8 @@ class FieldTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetMinCount()
{
$this->facet->setMincount(100);
$this->assertEquals(100, $this->facet->getMincount());
$this->facet->setMinCount(100);
$this->assertEquals(100, $this->facet->getMinCount());
}
public function testSetAndGetMissing()
......
......@@ -157,7 +157,7 @@ class PivotTest extends \PHPUnit_Framework_TestCase
$this->facet->clearStats();
$this->facet->addStats(array('stat1', 'stat2'));
$this->facet->removeStat('stat1');
$this->assertEquals(array('stat2'), $this->facet->getstats());
$this->assertEquals(array('stat2'), $this->facet->getStats());
}
public function testSetStats()
......
......@@ -69,7 +69,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(2, count($facets));
$this->assertEquals($options['prefix'], $this->facetSet->getPrefix());
$this->assertEquals($options['sort'], $this->facetSet->getSort());
$this->assertEquals($options['mincount'], $this->facetSet->getMincount());
$this->assertEquals($options['mincount'], $this->facetSet->getMinCount());
$this->assertEquals($options['missing'], $this->facetSet->getMissing());
$this->assertEquals($options['extractfromresponse'], $this->facetSet->getExtractFromResponse());
$this->assertEquals($options['contains'], $this->facetSet->getContains());
......@@ -117,8 +117,8 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetMinCount()
{
$this->facetSet->setMincount(100);
$this->assertEquals(100, $this->facetSet->getMincount());
$this->facetSet->setMinCount(100);
$this->assertEquals(100, $this->facetSet->getMinCount());
}
public function testSetAndGetMissing()
......
......@@ -101,7 +101,7 @@ class FieldTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetFragSize()
{
$value = 20;
$this->fld->setFragsize($value);
$this->fld->setFragSize($value);
$this->assertEquals(
$value,
......
......@@ -294,7 +294,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetFragSize()
{
$value = 20;
$this->hlt->setFragsize($value);
$this->hlt->setFragSize($value);
$this->assertEquals(
$value,
......
......@@ -163,7 +163,7 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
public function testWithEdismaxComponent()
{
$this->query->getEdisMax();
$this->query->getEDisMax();
$request = $this->builder->build($this->query);
$this->assertEquals(
......
......@@ -71,7 +71,7 @@ class AddTest extends \PHPUnit_Framework_TestCase
}
try {
$doc = new \StdClass();
$doc = new \stdClass;
$this->command->addDocument($doc);
$this->fail(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment