Skip to content

Commit 77e89e3

Browse files
committed
- added functional test for getVersion
- updated ChangeLog
1 parent 40ef6fb commit 77e89e3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file based on the
1111
### Added
1212
- Elastica\QueryBuilder\DSL\Query::geo_distance
1313
- Elastica\Aggregation\GeoCentroid [#1150](https://github.com/ruflin/Elastica/pull/1150)
14+
- Elastica\Client::getVersion [#1152](https://github.com/ruflin/Elastica/pull/1152)
1415

1516
### Improvements
1617
- Set PHP 7.0 as default development version

test/lib/Elastica/Test/ClientTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ public function testConstruct()
2323
$this->assertCount(1, $client->getConnections());
2424
}
2525

26+
/**
27+
* @group functional
28+
*/
29+
public function testGetVersion()
30+
{
31+
$client = $this->_getClient();
32+
$this->assertNotEmpty($version = $client->getVersion());
33+
$this->assertSame($version, $client->getVersion());
34+
}
35+
2636
/**
2737
* @group functional
2838
*/

0 commit comments

Comments
 (0)