public function testInvalidCommandInRequest() { $this->query->add('invalidcommand', new InvalidCommand()); $this->setExpectedException('Solarium\\Exception\\RuntimeException'); $this->builder->build($this->query); }