[$_SERVER['ES_TEST_HOST']] ]); $serverInfo = $client->info(); var_dump($serverInfo); $gitWrapper = new \GitWrapper\GitWrapper(); echo "Git cwd: ".dirname(__DIR__) . "/util/elasticsearch\n"; $git = $gitWrapper->workingCopy(dirname(__DIR__) . '/util/elasticsearch'); echo "Update elasticsearch submodule\n"; $git->fetchAll(array('verbose' => true)); $hash = $serverInfo['version']['build_hash']; echo "Checkout yaml tests (hash: $hash)\n"; $git->checkout($hash, array('force' => true, 'quiet' => true));