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