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 @@ -401,11 +401,15 @@ class Tester
401
401
bool $ debug = null ,
402
402
string $ clientTransport = 'stream '
403
403
) {
404
- $ this ->configTemplate = $ configTemplate ;
405
- $ this ->code = $ code ;
406
- $ this ->options = $ options ;
407
- $ this ->fileName = $ fileName ?: self ::getCallerFileName ();
408
- $ this ->debug = $ debug !== null ? $ debug : (bool )getenv ('TEST_FPM_DEBUG ' );
404
+ $ this ->configTemplate = $ configTemplate ;
405
+ $ this ->code = $ code ;
406
+ $ this ->options = $ options ;
407
+ $ this ->fileName = $ fileName ?: self ::getCallerFileName ();
408
+ if (($ debugFilter = getenv ('TEST_FPM_DEBUG_FILTER ' )) !== false ) {
409
+ $ this ->debug = str_contains (basename ($ this ->fileName ), $ debugFilter );
410
+ } else {
411
+ $ this ->debug = $ debug !== null ? $ debug : (bool )getenv ('TEST_FPM_DEBUG ' );
412
+ }
409
413
$ this ->logReader = new LogReader ($ this ->debug );
410
414
$ this ->logTool = new LogTool ($ this ->logReader , $ this ->debug );
411
415
$ this ->clientTransport = $ clientTransport ;
@@ -930,6 +934,7 @@ class Tester
930
934
$ requestData ['headers ' ] ?? [],
931
935
$ requestData ['uri ' ] ?? null
932
936
);
937
+ $ this ->trace ('Request params ' , $ params );
933
938
934
939
if (isset ($ requestData ['delay ' ])) {
935
940
usleep ($ requestData ['delay ' ]);
You can’t perform that action at this time.
0 commit comments