コード例 #1
0
 /**
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage Command was not found matching foo
  */
 public function testMagicCallBehaviorEnsuresCommandExists()
 {
     $client = new Mock\MockClient();
     $client->setDescription($this->service);
     $client->enableMagicMethods(true);
     $client->foo();
 }
コード例 #2
0
ファイル: ClientTest.php プロジェクト: norv/guzzle
 /**
  * @covers Guzzle\Service\Client::__call
  * @covers Guzzle\Service\Client::setMagicCallBehavior
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage Command was not found matching foo
  */
 public function testMagicCallBehaviorEnsuresCommandExists()
 {
     $client = new Mock\MockClient();
     $client->setDescription($this->service);
     $client->setMagicCallBehavior(Client::MAGIC_CALL_RETURN);
     $client->foo();
 }