1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

👌 Swift 6 compatibility

This commit is contained in:
2022-10-18 23:41:46 +02:00
parent 507d7d5b23
commit 1c0d9f6826
7 changed files with 35 additions and 11 deletions

View File

@ -11,10 +11,20 @@ import XCTest
class TestableConfigurationTest: XCTestCase {
func test_configuration_can_be_saved_as_json() async {
var configuration = TestableConfigurations.working
try! configuration.toJson().write(toFile: "/tmp/pmc_working.json", atomically: true, encoding: .utf8)
try! configuration.toJson().write(
toFile: NSHomeDirectory() + "/.phpmon_fconf_working.json",
atomically: true,
encoding: .utf8
)
configuration.filesystem["/opt/homebrew/bin/php"] = nil
try! configuration.toJson().write(toFile: "/tmp/pmc_broken.json", atomically: true, encoding: .utf8)
try! configuration.toJson().write(
toFile: NSHomeDirectory() + "/.phpmon_fconf_broken.json",
atomically: true,
encoding: .utf8
)
}
}