protected function assertIndex($index, $kind, $target, $className, $isCustom)
{
$this->assertEquals($kind, $index->kind());
$this->assertEquals($target, $index->target());
$this->assertEquals($isCustom, $index->isCustom());
if ($isCustom) {
$this->assertEquals($className, $index->className());
} else {
$this->assertFalse($index->className());
}
if (version_compare($this->serverVersion, "3.0.0", ">=")) {
$this->assertCount(1, $index->options());
$this->assertEquals($target, $index->option("target"));
}
}