We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d408e commit 86d951eCopy full SHA for 86d951e
tests/Planner/FieldIndexPlannerTest.php
@@ -72,6 +72,15 @@ public function testPlannerExtremes()
72
->addExistingIndex('name', 32, PHP_INT_MAX)
73
->addExistingIndex('first_initial_last_name', 16, PHP_INT_MAX)
74
->addExistingIndex('initials', 16, PHP_INT_MAX);
75
+ try {
76
+ $planner->recommend();
77
+ $this->fail(
78
+ 'Planner should throw an exception if it cannot offer safe recommendations.'
79
+ );
80
+ } catch (PlannerException $ex) {
81
+ $this->assertSame('Populations less than 16 are too small to make recommendations on', $ex->getMessage());
82
+ }
83
+ $planner->setEstimatedPopulation(16);
84
try {
85
$planner->recommend();
86
$this->fail(
0 commit comments