Skip to content

Commit

Permalink
Fix PHP 5.3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Oct 18, 2015
1 parent 834ee7b commit e76c2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/Elastica/Test/Base.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php
namespace Elastica\Test;

use Elastica\Client;
Expand Down Expand Up @@ -83,7 +82,8 @@ protected function _createIndex($name = null, $delete = true, $shards = 1)

protected function _checkScriptInlineSetting()
{
$scriptInline = $this->_getClient()->getCluster()->getNodes()[0]->getInfo()->get('settings', 'script', 'inline');
$nodes = $this->_getClient()->getCluster()->getNodes()
$scriptInline = $nodes[0]->getInfo()->get('settings', 'script', 'inline');

if ($scriptInline != 'on') {
$this->markTestSkipped('script.inline is not enabled. This is required for this test');
Expand Down

0 comments on commit e76c2b6

Please sign in to comment.