File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1717use function copy ;
1818use function realpath ;
1919use function sprintf ;
20+ use function str_contains ;
2021
2122class CliContext implements Context
2223{
@@ -119,6 +120,13 @@ public function theExtensionShouldHaveBeenBuilt(): void
119120 return ;
120121 }
121122
123+ if (str_contains ($ this ->output , 'Found prebuilt archive ' )) {
124+ Assert::contains ($ this ->output , 'Found prebuilt archive ' );
125+ Assert::contains ($ this ->output , 'Pre-packaged binary found ' );
126+
127+ return ;
128+ }
129+
122130 Assert::contains ($ this ->output , 'phpize complete. ' );
123131 Assert::contains ($ this ->output , 'Configure complete ' );
124132 Assert::contains ($ this ->output , 'Build complete: ' );
@@ -141,6 +149,13 @@ public function theExtensionShouldHaveBeenBuiltWithOptions(): void
141149 return ;
142150 }
143151
152+ if (str_contains ($ this ->output , 'Found prebuilt archive ' )) {
153+ Assert::contains ($ this ->output , 'Found prebuilt archive ' );
154+ Assert::contains ($ this ->output , 'Pre-packaged binary found ' );
155+
156+ return ;
157+ }
158+
144159 Assert::contains ($ this ->output , 'phpize complete. ' );
145160 Assert::contains ($ this ->output , 'Configure complete with options: --with-hello-name=sup ' );
146161 Assert::contains ($ this ->output , 'Build complete: ' );
You can’t perform that action at this time.
0 commit comments