public function testMagicCallBehaviorExecuteExecutesCommands() { $client = new Mock\MockClient(); $client->setDescription($this->service); $client->getEventDispatcher()->addSubscriber(new MockPlugin(array(new Response(200)))); $result = $client->mockCommand(); $this->assertInstanceOf('Guzzle\\Http\\Message\\Response', $result); }