Skip to content

Commit

Permalink
Add strict types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Mar 24, 2024
1 parent 49a378a commit 98334b8
Show file tree
Hide file tree
Showing 197 changed files with 416 additions and 24 deletions.
2 changes: 2 additions & 0 deletions tests/Aggregation/AbstractSimpleAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\AbstractSimpleAggregation;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/AdjacencyMatrixTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\AdjacencyMatrix;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/AggregationMetadataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Cardinality;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/AutoDateHistogramTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\AutoDateHistogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/AvgBucketTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/AvgTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/BaseAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Test\Base;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/BucketScriptTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\BucketScript;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/BucketSelectorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\BucketSelector;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/CardinalityTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Cardinality;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ChildrenTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Children;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/CompositeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Composite;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/CumulativeSumTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\CumulativeSum;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/DateHistogramTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\DateHistogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/DateRangeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastic\Elasticsearch\Exception\ClientResponseException;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/DerivativeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\DateHistogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/DiversifiedSamplerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\DiversifiedSampler;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ExtendedStatsBucketTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\ExtendedStatsBucket;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ExtendedStatsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\ExtendedStats;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/FilterTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/FiltersTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GeoBoundsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GeoBounds;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GeoCentroidTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GeoCentroid;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GeoDistanceTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GeoDistance;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GeohashGridTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GeohashGrid;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GeotileGridAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GeotileGridAggregation;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/GlobalAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/HistogramTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Histogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/IpRangeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\IpRange;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/MaxTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Max;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/MinTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Min;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/MissingTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Missing;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/NestedTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Min;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/NormalizeAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\DateHistogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ParentAggregationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\ParentAggregation;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/PercentilesBucketTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Avg;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/PercentilesTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Percentiles;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/RangeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Range;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ReverseNestedTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Nested;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/SamplerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Sampler;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ScriptTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Sum;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/ScriptedMetricTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\ScriptedMetric;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/SerialDiffTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\DateHistogram;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/SignificantTermsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\SignificantTerms;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/StatsBucketTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GapPolicyInterface;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/StatsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Stats;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/SumBucketTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\GapPolicyInterface;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/SumTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Sum;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/TermsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\Composite;
Expand Down
2 changes: 2 additions & 0 deletions tests/Aggregation/TopHitsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elastica\Test\Aggregation;

use Elastica\Aggregation\AbstractAggregation;
Expand Down
Loading

0 comments on commit 98334b8

Please sign in to comment.