public function testGetSetName() { $name = 'my-name'; $this->assertNull($this->index->getName()); $this->index->setName($name); $this->assertSame($name, $this->index->getName()); }
/** * Adds a new index * * @param Index $index * @author Daniel Wendlandt */ public function addIndex(Index $index) { $this->indices[$index->getName()] = $index; }