public function putEnv($key, $value) { if (is_null($value)) { ok(putenv($key)); } else { ok(putenv("{$key}={$value}")); } }