/** * @expectedException BadMethodCallException */ public function testMagicCallBehaviorCanBeDisabled() { $client = new Client(); $client->enableMagicMethods(false); $client->foo(); }
/** * @covers Guzzle\Service\Client::__call * @expectedException BadMethodCallException */ public function testMagicCallBehaviorIsDisabledByDefault() { $client = new Client(); $client->foo(); }