Cassandra\SchemaMetadataIntegrationTest::assertIndex PHP Method

assertIndex() protected method

Assert the index instance
protected assertIndex ( $index, $kind, $target, $className, $isCustom )
$index Index to assert against
$kind Kind to assert
$target Target (and index->option('target')) to assert for index->target()
$className Boolean or string value to assert for index->className
$isCustom Value of index->isCustom() to assert
    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"));
        }
    }