public function testSetKey() { $this->setExpectedException('\\InvalidArgumentException'); $client = new Client('testing'); $client->setKey('test2'); $client->setKey(235); }