File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -389,11 +389,15 @@ class Tester
389
389
?bool $ debug = null ,
390
390
string $ clientTransport = 'stream '
391
391
) {
392
- $ this ->configTemplate = $ configTemplate ;
393
- $ this ->code = $ code ;
394
- $ this ->options = $ options ;
395
- $ this ->fileName = $ fileName ?: self ::getCallerFileName ();
396
- $ this ->debug = $ debug !== null ? $ debug : (bool )getenv ('TEST_FPM_DEBUG ' );
392
+ $ this ->configTemplate = $ configTemplate ;
393
+ $ this ->code = $ code ;
394
+ $ this ->options = $ options ;
395
+ $ this ->fileName = $ fileName ?: self ::getCallerFileName ();
396
+ if (($ debugFilter = getenv ('TEST_FPM_DEBUG_FILTER ' )) !== false ) {
397
+ $ this ->debug = str_contains (basename ($ this ->fileName ), $ debugFilter );
398
+ } else {
399
+ $ this ->debug = $ debug !== null ? $ debug : (bool )getenv ('TEST_FPM_DEBUG ' );
400
+ }
397
401
$ this ->logReader = new LogReader ($ this ->debug );
398
402
$ this ->logTool = new LogTool ($ this ->logReader , $ this ->debug );
399
403
$ this ->clientTransport = $ clientTransport ;
@@ -920,6 +924,7 @@ class Tester
920
924
$ requestData ['headers ' ] ?? [],
921
925
$ requestData ['uri ' ] ?? null
922
926
);
927
+ $ this ->trace ('Request params ' , $ params );
923
928
924
929
if (isset ($ requestData ['delay ' ])) {
925
930
usleep ($ requestData ['delay ' ]);
You can’t perform that action at this time.
0 commit comments