mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-06 21:00:07 +01:00
🏗 WIP
This commit is contained in:
@@ -43,6 +43,12 @@ public class TestableShell: Shellable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Test env shell output should be modeled differently
|
||||||
|
// So the possible outcome is either:
|
||||||
|
// 1. Immediate with almost zero delay `.instant("string")`
|
||||||
|
// 2. Delayed but then all at once: `.delay(300, "string")`
|
||||||
|
// 3. A stream of data spread over multiple seconds: `.multiple([.delay(300, "hello"), .delay(300, "bye")])`
|
||||||
|
|
||||||
protocol OutputsToShell {
|
protocol OutputsToShell {
|
||||||
func getOutputAsString() -> String
|
func getOutputAsString() -> String
|
||||||
func getDuration() -> Int
|
func getDuration() -> Int
|
||||||
|
|||||||
Reference in New Issue
Block a user