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

🏗 Remove synchronous terminal commands

This commit is contained in:
2022-10-04 18:40:41 +02:00
parent 953ccb3792
commit 8a6139d5e7
5 changed files with 21 additions and 21 deletions

View File

@@ -15,10 +15,12 @@ class SystemShellTest: XCTestCase {
ActiveShell.useSystem()
}
func test_system_shell_is_default() {
func test_system_shell_is_default() async {
XCTAssertTrue(Shell is SystemShell)
XCTAssertTrue(Shell.sync("php -v").out.contains("Copyright (c) The PHP Group"))
let output = await Shell.pipe("php -v")
XCTAssertTrue(output.out.contains("Copyright (c) The PHP Group"))
}
func test_system_shell_has_path() {