From 5ac279996b06c47599db645b2decff1c19ad50a7 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:35:38 +0200
Subject: [PATCH] Added extended stats aggregation

---
 Aggregation/ExtendedStatsAggregationTest.php | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Aggregation/ExtendedStatsAggregationTest.php

diff --git a/Aggregation/ExtendedStatsAggregationTest.php b/Aggregation/ExtendedStatsAggregationTest.php
new file mode 100644
index 0000000..cada622
--- /dev/null
+++ b/Aggregation/ExtendedStatsAggregationTest.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\ExtendedStatsAggregation;
+
+class ExtendedStatsAggregationTest extends \PHPUnit_Framework_TestCase
+{
+    /**
+     * Tests if exception is thrown when expected.
+     *
+     * @expectedException \LogicException
+     */
+    public function testExtendedStatsAggregationGetArrayException()
+    {
+        $agg = new ExtendedStatsAggregation('foo');
+        $agg->getArray();
+    }
+}
-- 
GitLab