php-agentic/tests/Unit
darbs-claude 77e4ae6bad
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 1m53s
CI / PHP 8.4 (pull_request) Failing after 1m52s
fix: add error handling to ClaudeService streaming (#26)
Wrap stream() in try/catch to prevent silent failures.
On exception, log the error and yield a structured error event:
  ['type' => 'error', 'message' => string]

Adds tests for connection errors, runtime exceptions, error event
format, and Log::error invocation. Closes ERR-001 in TODO.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 11:04:07 +00:00
..
Concerns style: fix pint code style issues 2026-02-23 06:42:24 +00:00
.gitkeep Initial commit 2026-01-26 23:20:30 +00:00
AgentDetectionTest.php test: add AgentDetection service unit tests 2026-02-23 01:40:47 +00:00
AgenticManagerTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ClaudeServiceTest.php fix: add error handling to ClaudeService streaming (#26) 2026-02-23 11:04:07 +00:00
GeminiServiceTest.php feat(tests): add AgenticManager tests 2026-01-29 19:23:20 +00:00
OpenAIServiceTest.php feat(tests): add AgenticManager tests 2026-01-29 19:23:20 +00:00
ProcessContentTaskTest.php fix: use closure-based __get for mock property access 2026-02-23 07:02:04 +00:00