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

👌 Add PATH to SystemShell

This commit is contained in:
2022-09-21 21:31:00 +02:00
parent 39769d815f
commit 1d396202db
2 changed files with 28 additions and 2 deletions

View File

@@ -16,6 +16,13 @@ class ShellTest: XCTestCase {
.contains("Copyright (c) The PHP Group"))
}
func test_system_shell_has_path() {
let systemShell = NxtShell.shared as! SystemShell
XCTAssertTrue(systemShell.PATH.contains(":/usr/local/bin"))
XCTAssertTrue(systemShell.PATH.contains(":/usr/bin"))
}
func test_we_can_predefine_responses_for_dummy_shell() {
let expectedPhpOutput = """
PHP 8.1.10 (cli) (built: Sep 3 2022 12:09:27) (NTS)