1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-28 23:00:07 +01:00
Files
app/tests/unit/Conditions/Binaries.swift
Nico Verbruggen 251c53b7bb Conditional tests
- RealWebApiTest requires api.phpmon.test to be reachable or skips
- CommandTest requires php binary or skips
2026-02-16 16:15:41 +01:00

20 lines
379 B
Swift

//
// Binaries.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 16/02/2026.
// Copyright © 2026 Nico Verbruggen. All rights reserved.
//
import Foundation
class Binaries {
static func exist(paths: [String]) -> Bool {
for path in paths where FileManager.default.fileExists(atPath: path) {
return true
}
return false
}
}