From e39d49ddff40ce5ee809fc3a2c1408232aeb74d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt> Date: Tue, 24 Mar 2015 09:09:26 +0200 Subject: [PATCH] Added percentile ranks aggregation --- .../PercentileRanksAggregationTest.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Aggregation/PercentileRanksAggregationTest.php diff --git a/Aggregation/PercentileRanksAggregationTest.php b/Aggregation/PercentileRanksAggregationTest.php new file mode 100644 index 0000000..b19635b --- /dev/null +++ b/Aggregation/PercentileRanksAggregationTest.php @@ -0,0 +1,28 @@ +<?php + +/* + * This file is part of the ONGR package. + * + * (c) NFQ Technologies UAB <info@nfq.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace ONGR\ElasticsearchBundle\Tests\Unit\DSL\Aggregation; + +use ONGR\ElasticsearchBundle\DSL\Aggregation\PercentileRanksAggregation; + +class PercentileRanksAggregationTest extends \PHPUnit_Framework_TestCase +{ + /** + * Tests if exception is thrown. + * + * @expectedException \LogicException + */ + public function testIfPercentileRanksAggregationThrowsAnException() + { + $agg = new PercentileRanksAggregation('foo'); + $agg->toArray(); + } +} -- GitLab