'you')); $this->assertInstanceOf('\API_webhook', $w); $w->delete(); } public function testNewApiHookObjectNotFound() { try { $w = new \API_Webhook(self::$DI['app']['phraseanet.appbox'], -1); $this->fail('It should raise an exception'); } catch (RuntimeException $e) { } } }