function do_undeploy($deployId, $count) { Vertx::undeployVerticle($deployId, function () { $count++; if ($count < 10) { do_deploy($count); } else { Vertx::logger()->info('Done!'); } }); }
/** * Tests failing a verticle undeploy. */ public function testUndeployFail() { Vertx::undeployVerticle('asdlkjsdalf', function ($error) { $this->assertNotNull($error); $this->complete(); }); }