diff options
| author | Simon Rettberg | 2025-11-26 10:46:51 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-12-12 15:16:59 +0100 |
| commit | 7c173411785f959d250d3dfbd7d4cfcb0e20f0e0 (patch) | |
| tree | 242157791a76afb7af23ec2cd3d22b599e54ce9d /tests/Stubs/TaskmanagerCallback.php | |
| parent | [exams] Fix incorrect count() clause (diff) | |
| download | slx-admin-7c173411785f959d250d3dfbd7d4cfcb0e20f0e0.tar.gz slx-admin-7c173411785f959d250d3dfbd7d4cfcb0e20f0e0.tar.xz slx-admin-7c173411785f959d250d3dfbd7d4cfcb0e20f0e0.zip | |
Add tests using PHPUnit
Tests generated by Junie AI. Might not have the best possible quality
but at least we got something, and if it turns out to be complete
rubbish, we can just throw it out again without any issues, as this is
independent of the actual code base.
Diffstat (limited to 'tests/Stubs/TaskmanagerCallback.php')
| -rw-r--r-- | tests/Stubs/TaskmanagerCallback.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Stubs/TaskmanagerCallback.php b/tests/Stubs/TaskmanagerCallback.php new file mode 100644 index 00000000..3db06df8 --- /dev/null +++ b/tests/Stubs/TaskmanagerCallback.php @@ -0,0 +1,16 @@ +<?php + +class TaskmanagerCallback +{ + public static array $callbacks = []; + + public static function reset(): void + { + self::$callbacks = []; + } + + public static function addCallback(array $task, string $name, $arg): void + { + self::$callbacks[] = ['task' => $task['id'] ?? null, 'name' => $name, 'arg' => $arg]; + } +} |
