public function testCreateResultWithInvalidResult() { $overrideValue = '\\stdClass'; $response = new Response('', array('HTTP 1.0 200 OK')); $mockQuery = $this->getMock('Solarium\\QueryType\\Select\\Query\\Query', array('getResultClass')); $mockQuery->expects($this->once())->method('getResultClass')->will($this->returnValue($overrideValue)); $this->setExpectedException('Solarium\\Exception\\UnexpectedValueException'); $this->client->createResult($mockQuery, $response); }