Skip to content

test(php): improve assertion strictness in integration test#17

Merged
coreyhn merged 1 commit into
mainfrom
tests/improve-assertion-strictness
Jul 18, 2025
Merged

test(php): improve assertion strictness in integration test#17
coreyhn merged 1 commit into
mainfrom
tests/improve-assertion-strictness

Conversation

@coreyhn
Copy link
Copy Markdown
Collaborator

@coreyhn coreyhn commented Jul 18, 2025

Replace assertEquals() with assertSame() throughout the client integration test for better type checking and test reliability. This ensures exact type and value matching instead of loose equality comparison.

Changes include:

  • Update string, integer, and float assertions to use assertSame()
  • Keep assertEquals() only for array comparisons where appropriate
  • Replace assert() with assertIsArray() for consistency

Replace `assertEquals()` with `assertSame()` throughout the client
integration test for better type checking and test reliability.
This ensures exact type and value matching instead of loose
equality comparison.

Changes include:
- Update string, integer, and float assertions to use `assertSame()`
- Keep `assertEquals()` only for array comparisons where appropriate
- Replace `assert()` with `assertIsArray()` for consistency
@coreyhn coreyhn requested a review from calvinbrewer July 18, 2025 05:43
@coreyhn coreyhn merged commit b8cede6 into main Jul 18, 2025
27 checks passed
@coreyhn coreyhn deleted the tests/improve-assertion-strictness branch July 18, 2025 23:18
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