public function testSetAndGetAdapterWithInvalidString() { $adapterClass = '\\stdClass'; $this->client->setAdapter($adapterClass); $this->setExpectedException('Solarium\\Exception\\InvalidArgumentException'); $this->client->getAdapter(); }