1
0
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:
2022-09-20 20:53:15 +02:00
parent 3f25759d4f
commit 90a69338f7

View File

@ -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"))
}
}