mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
🏗 Add additional test
This commit is contained in:
@ -14,7 +14,9 @@ class ShellTest: XCTestCase {
|
||||
|
||||
XCTAssertTrue(NewShell.shared.syncPipe("php -v")
|
||||
.contains("Copyright (c) The PHP Group"))
|
||||
}
|
||||
|
||||
func test_we_can_predefine_responses_for_dummy_shell() {
|
||||
let expectedPhpOutput = """
|
||||
PHP 8.1.10 (cli) (built: Sep 3 2022 12:09:27) (NTS)
|
||||
Copyright (c) The PHP Group
|
||||
@ -27,6 +29,8 @@ class ShellTest: XCTestCase {
|
||||
"php -v": expectedPhpOutput
|
||||
])
|
||||
|
||||
XCTAssertTrue(NewShell.shared is TestableShell)
|
||||
|
||||
XCTAssertEqual(expectedPhpOutput, NewShell.shared.syncPipe("php -v"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user