/** * @expectedException BadMethodCallException */ public function testMagicCallBehaviorCanBeDisabled() { $client = new Client(); $client->enableMagicMethods(false); $client->foo(); }