diff --git a/tests/DemosTest.php b/tests/DemosTest.php index 0e40edf606..44e7de20ab 100644 --- a/tests/DemosTest.php +++ b/tests/DemosTest.php @@ -149,8 +149,10 @@ protected function getClient(): Client $app->run(); } - if (\Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)() !== ['__atk_json' => false, '__atk_tab' => false]) { - throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component'); + // assert no test sets app/global GET sticky + $appSticky = \Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)(); + if ($appSticky !== ['__atk_json' => false, '__atk_tab' => false]) { + throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component' . print_r($appSticky, true)); } } catch (\Throwable $e) { // session_start() or ini_set() functions can be used only with native HTTP tests