Skip to content

Commit 8882c39

Browse files
committed
bump version and fix url
1 parent d4c3fc4 commit 8882c39

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/SpameriTests/ElasticQuery/Query/WildCard.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ class WildCard extends \Tester\TestCase
6565
);
6666

6767
\Tester\Assert::noError(static function () use ($ch) {
68-
$response = curl_exec($ch);
68+
$response = \curl_exec($ch);
69+
if ($response === false) {
70+
throw new \RuntimeException('Curl request failed: ' . \curl_error($ch));
71+
}
6972
$resultMapper = new \Spameri\ElasticQuery\Response\ResultMapper();
7073
/** @var \Spameri\ElasticQuery\Response\ResultSearch $result */
71-
$result = $resultMapper->map(\json_decode($response, TRUE));
74+
$result = $resultMapper->map(\json_decode($response, true));
7275
\Tester\Assert::type('int', $result->stats()->total());
7376
});
7477

tests/SpameriTests/ElasticQuery/Response/ResultVersion.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ResultVersion extends \Tester\TestCase
1313
{
1414
$resultMapper = new \Spameri\ElasticQuery\Response\ResultMapper();
1515
/** @var \Spameri\ElasticQuery\Response\ResultVersion $resultObject */
16-
$resultObject = $resultMapper->map(\json_decode(\file_get_contents('http://' . \ELASTICSEARCH_HOST), TRUE));
16+
$resultObject = $resultMapper->map(\json_decode(\file_get_contents(\ELASTICSEARCH_HOST), TRUE));
1717

1818
\Tester\Assert::true($resultObject instanceof \Spameri\ElasticQuery\Response\ResultVersion);
1919

0 commit comments

Comments
 (0)