public function testCreateWebhookReturnsCorrectData() { $webhook = new Webhook(); $webhook->setName('test'); $webhook->setCallbackUrl('http://example.com'); $this->setMockResponse($this->client, array('webhooks/createWebhook')); $result = $this->client->createWebhook($webhook); $this->assertInstanceOf('\\Mgrt\\Model\\Webhook', $webhook); }