public function testRemoveComponentWithObjectInput() { $mlt = new MoreLikeThis(); $this->query->setComponent('mlt', $mlt); $this->assertEquals(array('mlt' => $mlt), $this->query->getComponents()); $this->query->removeComponent($mlt); $this->assertEquals(array(), $this->query->getComponents()); }