1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-08 13:30:06 +01:00

♻️ WIP: Change some tests to Swift Testing, add TestBundle

This commit is contained in:
2025-08-25 17:45:56 +02:00
parent 8925fc4f90
commit 88b2495c87
5 changed files with 98 additions and 23 deletions

View File

@@ -0,0 +1,28 @@
//
// CommandTest.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 13/02/2021.
// Copyright © 2023 Nico Verbruggen. All rights reserved.
//
import Testing
@Suite("Commands")
struct CommandTest {
@Test
func determinePhpVersion() {
let version = Command.execute(
path: Paths.php,
arguments: ["-v"],
trimNewlines: false
)
#expect(version.contains("(cli)"))
#expect(version.contains("NTS"))
#expect(version.contains("built"))
#expect(version.contains("Zend"))
}
}