/** * @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(); }