1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-28 23:00:07 +01:00
Files
app/tests/unit/Commands/CommandTest.swift
2025-11-23 17:37:46 +01:00

27 lines
611 B
Swift

//
// CommandTest.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 13/02/2021.
// Copyright © 2025 Nico Verbruggen. All rights reserved.
//
import Testing
struct CommandTest {
@Test func determinePhpVersion() {
let container = Container.real()
let version = container.command.execute(
path: container.paths.php,
arguments: ["-v"],
trimNewlines: false
)
#expect(version.contains("(cli)"))
#expect(version.contains("NTS"))
#expect(version.contains("built"))
#expect(version.contains("Zend"))
}
}