Commit 5303b85
committed
Tests: Use
This ensures that not only the return values match the expected results, but also that their type is the same.
Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.
Follow-up to [61700].
Reviewed by peterwilsoncc.
Merges r62248 to the 7.0 branch.
Props sagardeshmukh, SergeyBiryukov.
See #64324.
git-svn-id: https://develop.svn.wordpress.org/branches/7.0@62265 602fd350-edb4-49c9-b593-d223f7449a82assertSame() in WP_AI_Client_Prompt_Builder tests.1 parent 8de9a14 commit 5303b85
1 file changed
Lines changed: 78 additions & 78 deletions
0 commit comments