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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user