/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage `setClient()` must be called before `getClient()` */ public function testExceptionThrownWhenClientNotSet() { $auth = new Auth(); $auth->getClient(); }