Skip to content

Conversation

@huangdijia
Copy link
Member

Summary

  • Added Macroable trait to Pipeline class
  • Added hyperf/macroable dependency to composer.json
  • Added comprehensive unit tests for Macroable functionality

Changes

  • Use Macroable trait in Pipeline class
  • Add hyperf/macroable dependency
  • Add unit tests covering:
    • Basic macro functionality
    • Macro with $this context access
    • hasMacro method
    • Macro overwriting behavior

Test plan

  • Run unit tests (14 tests, 28 assertions passed)
  • Code style fixed
  • Static analysis passed

huangdijia and others added 3 commits August 7, 2025 22:38
- Added Macroable trait to Pipeline class
- Added hyperf/macroable dependency to composer.json
- Added comprehensive unit tests for Macroable functionality including:
  - Basic macro functionality
  - Macro with $this context access
  - hasMacro method
  - Macro overwriting behavior
Add Pipeline Macroable tests information to v3.1.61 section
@limingxinleo limingxinleo changed the title Add Macroable trait to Pipeline with unit tests Added Macroable trait to Hyperf\Pipeline\Pipeline. Sep 3, 2025
@limingxinleo limingxinleo merged commit 6568872 into hyperf:master Sep 3, 2025
71 checks passed
@huangdijia huangdijia deleted the feature/pipeline-macroable-tests branch September 3, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants