Skip to content

Add comprehensive PHP integration tests for validation - #18

Draft
matapatos wants to merge 1 commit into
mainfrom
vibe/add-php-integration-tests-a54fe0
Draft

Add comprehensive PHP integration tests for validation#18
matapatos wants to merge 1 commit into
mainfrom
vibe/add-php-integration-tests-a54fe0

Conversation

@matapatos

Copy link
Copy Markdown
Contributor

Add comprehensive PHP integration tests for validation

Changes

  • Add ValidationTest.php with tests for:
    • Basic type validation and coercion (int, float, string, bool)
    • Nullable type validation
    • Strict mode validation
    • Multiple properties validation
    • Missing required fields validation
    • Stop at first error configuration
    • Inheritance support
    • Alias attribute support
    • ModelConfigs with aliasGenerator
  • Tests cover both success and error cases
  • Uses Pest testing framework

Impact

  • Comprehensive test coverage for PHP-level validation
  • Ensures type coercion works correctly in real-world scenarios
  • Tests all major configuration options
  • Helps prevent regressions

Closes #5

- Add ValidationTest.php with tests for:
  - Basic type validation and coercion (int, float, string, bool)
  - Nullable type validation
  - Strict mode validation
  - Multiple properties validation
  - Missing required fields validation
  - Stop at first error configuration
  - Inheritance support
  - Alias attribute support
  - ModelConfigs with aliasGenerator
- Tests cover both success and error cases
- Uses Pest testing framework

Closes #5

Co-authored-by: matapatos <matapatos@users.noreply.github.com>
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