1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-09 04:42:59 +02:00

Test synchronous shell output

This commit is contained in:
2023-11-26 21:48:40 +01:00
parent e8306289ce
commit a7d5950aa0
5 changed files with 66 additions and 11 deletions

View File

@@ -23,6 +23,14 @@ class RealShellTest: XCTestCase {
XCTAssertTrue(output.out.contains("Copyright (c) The PHP Group"))
}
func test_system_shell_can_be_used_synchronously() {
XCTAssertTrue(Shell is RealShell)
let output = Shell.sync("php -v")
XCTAssertTrue(output.out.contains("Copyright (c) The PHP Group"))
}
func test_system_shell_has_path() {
let systemShell = Shell as! RealShell