/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Public key can only consist of: */ public function testThrowsExceptionWhenEditingPublicKeyWithInvalidCharacters() { $this->client->editPublicKey('foo.bar', 'wat'); }