function do_deploy($count = 0) { Vertx::deployVerticle('child.php', function ($deployId) { Vertx::logger()->info('Deployed ' . $count); do_undeploy($deployId, $count); }); }
/** * Tests failing a verticle deploy. */ public function testDeployFail() { Vertx::deployVerticle('asdlkjsdalf', NULL, 1, function ($id, $error) { $this->assertNull($id); $this->assertNotNull($error); $this->complete(); }); }
<?php $config = array('name' => 'tim', 'age' => 823823); Vertx::deployVerticle('deploy/child.php', $config);