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:
28
tests/unit/_ST/Commands/CommandTest.swift
Normal file
28
tests/unit/_ST/Commands/CommandTest.swift
Normal 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"))
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user