public function testDocumentWithBoostThrowsException() { $document = $this->query->createDocument(); $document->setBoost(4); $this->query->setDocument($document); $this->setExpectedException('Solarium\\Exception\\RuntimeException'); $this->builder->build($this->query); }