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