public function setUp() { $this->fileSystem = Vertx::fileSystem(); if ($this->fileSystem->existsSync(TEST_OUTPUT_DIRECTORY)) { $this->fileSystem->deleteRecursiveSync(TEST_OUTPUT_DIRECTORY); } $this->fileSystem->mkdirSync(TEST_OUTPUT_DIRECTORY, 'rwxr-xr-x'); }
function copyMods() { Vertx::fileSystem()->copyRecursive("src/test/resources/includemod/mods", "target/mods", function ($error) { if ($error) { Vertx::logger()->error($error); return; } else { Vertx::deployModule('io.vertx~php-includetest-mod~v1.0', NULL, 1, function ($id, $error) { if ($error) { Vertx::logger()->error($error); return; } else { TestRunner::run(new IncludeTestCase()); Vertx::undeployModule($id); } }); } }); }