Skip to content

Commit 29e904f

Browse files
authored
Add methods to ProcessResult interface (#49607)
1 parent 607bb93 commit 29e904f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Illuminate/Contracts/Process/ProcessResult.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,29 @@ public function exitCode();
3939
*/
4040
public function output();
4141

42+
/**
43+
* Determine if the output contains the given string.
44+
*
45+
* @param string $output
46+
* @return bool
47+
*/
48+
public function seeInOutput(string $output);
49+
4250
/**
4351
* Get the error output of the process.
4452
*
4553
* @return string
4654
*/
4755
public function errorOutput();
4856

57+
/**
58+
* Determine if the error output contains the given string.
59+
*
60+
* @param string $output
61+
* @return bool
62+
*/
63+
public function seeInErrorOutput(string $output);
64+
4965
/**
5066
* Throw an exception if the process failed.
5167
*

0 commit comments

Comments
 (0)