Commit Graph

253 Commits

Author SHA1 Message Date
nuno maduro e63a886f98 Merge pull request #1661 from Avnsh1111/fix/opposite-expectation-truncated-message
fix: preserve full error message in not() expectation failures
2026-04-10 11:48:24 +01:00
nuno maduro fbca346d7c fix: types 2026-04-07 14:40:55 +01:00
nuno maduro 3f13bca0f7 just in case 2026-04-07 14:37:13 +01:00
nuno maduro d3acb1c56a fix: coverage 2026-04-07 14:33:41 +01:00
avinash e601e6df31 fix: preserve full error message in not() expectation failures
When using not() expectations with custom error messages, the message
was truncated because throwExpectationFailedException() passed all
arguments through shortenedExport() which limits strings to ~40 chars.

Uses the full export() method for arguments instead of shortenedExport()
so custom error messages are displayed in their entirety.

Fixes #1533
2026-04-07 18:12:54 +05:30
nuno maduro f659a45311 Merge branch '4.x' into 5.x 2026-03-21 13:20:25 +00:00
nuno maduro a753b41409 chore: bumps phpunit 2026-03-21 13:14:35 +00:00
nuno maduro 12c1da29ee Merge branch '4.x' into 5.x 2026-03-10 21:21:24 +00:00
nuno maduro 2a80101f42 chore: update styling 2026-03-10 21:06:28 +00:00
Nuno Maduro a9ce1fd739 chore: code refactor 2026-02-17 17:45:34 +00:00
Nuno Maduro 3a4329ddc7 release: 4.3.2 2026-01-28 01:01:19 +00:00
Ilia Smirnov c7e4efcea4 fix: replace substr with mb_substr in Str::beforeLast to ensure multibyte string compatibility and correct TeamCity test names for datasets in "describe" blocks 2026-01-14 00:55:35 +01:00
Nuno Maduro 477d20a54f release: 4.1.3 2025-10-29 22:45:27 +00:00
Nuno Maduro 3d776f1f20 fix: revert reading coverage by chunks 2025-08-22 11:12:55 +01:00
Nuno Maduro ed38fb644f release: 4.0.0 rc 1 2025-08-20 07:58:51 +01:00
Nuno Maduro d187566e63 chore: updates snapshots 2025-07-25 21:29:26 -06:00
nuno maduro d6c6489e93 Merge branch '4.x' into fix/sibling-describe-blocks 2025-07-26 04:26:10 +01:00
Nuno Maduro fe27012bbc style 2025-07-22 23:58:36 +01:00
Nuno Maduro f9901245f1 updates dependencies and snapshots 2025-07-22 23:51:32 +01:00
nuno maduro e513f76ea9 Merge pull request #1256 from mazesec/add-slugify-method
Add slugify Method to Str Class and toBeSlug Assertion to Expectation Class
2025-07-22 23:08:15 +01:00
Nuno Maduro fb282b184e fix: return type 2025-07-21 13:32:03 +01:00
Nuno Maduro e0695a13cb feat: adds shell 2025-07-21 13:25:50 +01:00
Nuno Maduro 163479ae60 chore: style 2025-06-16 10:14:16 +01:00
Nuno Maduro c3bfdf130e chore: type checking 2025-06-16 10:14:04 +01:00
Nuno Maduro 49bf00024f fix: coverage when coverage file is over 2.4gb on mac os 2025-06-15 22:43:59 +01:00
Nuno Maduro a310796165 Fixes filtering tests 2025-04-29 11:38:33 +01:00
Nuno Maduro f68d11ccae chore: bumps dependencies 2025-03-29 17:44:06 +00:00
Nuno Maduro 4079a08f5f feat: adds --compact to coverage 2025-01-23 13:59:51 +00:00
jshayes b5b8fab09b Fix an issue where beforeEach/afterEach functions were called on other describe blocks with the same name 2025-01-20 17:36:22 -05:00
Nuno Maduro 6afb36519d release: 3.7.2 2025-01-19 17:16:25 +00:00
jshayes 9510d4a2f9 Change array type hint 2024-10-13 09:54:19 -04:00
jshayes cd2eb3504b Add helper to get last element of array 2024-10-13 09:47:54 -04:00
jshayes a6cd83665c Execute all parent beforeEach and afterEach functions for each test 2024-10-11 23:51:18 -04:00
Nuno Maduro 432ff221c6 fix: missing != and !== on new toUseStrictEquality arch expectation 2024-09-23 14:08:21 +01:00
Nuno Maduro a55da85dd2 release: v3.2.0 2024-09-23 13:14:03 +01:00
tal7aouy e3bfcbe5f1 Add slugify method 2024-09-16 13:36:34 +01:00
Nuno Maduro fa41a67be9 chore: fixes type checking 2024-09-09 10:37:20 +01:00
Nuno Maduro e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
Nuno Maduro 60dcfb36a8 Merge pull request #1207 from JonPurvis/coverage-fix
Fix coverage result for 99.95%+
2024-09-03 12:16:37 +01:00
Nuno Maduro 5ae5ac9a54 fix: removes both toHaveMethod and toHaveMethods 2024-08-28 16:30:29 -05:00
JonPurvis df69b0b791 fix coverage result for 99.95%+ 2024-08-26 21:58:16 +01:00
Nuno Maduro b6bf01148f feat: toHavePrivateMethodsBesides, toHaveProtectedMethodsBesides, toHavePublicMethodsBesides 2024-08-09 00:24:24 +01:00
Nuno Maduro 5e41e546a0 chore: style changes 2024-08-02 11:53:24 +01:00
Nuno Maduro 45cce6ce93 Style 2024-07-24 21:54:52 +01:00
Nuno Maduro 101e26749a fix: properties and methods documented 2024-07-20 17:45:41 +01:00
Nuno Maduro f2691623cf feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented 2024-07-19 14:03:59 +01:00
Nuno Maduro 4783334f15 chore: style 2024-07-11 09:35:38 +01:00
Nuno Maduro ee32f25485 feat: pr and issue 2024-07-04 00:53:58 +01:00
Nuno Maduro 1c4bc8b1dc fix: before each globally 2024-07-03 22:15:11 +01:00
Nuno Maduro 474b9b7e17 chore: adjusts tests 2024-06-27 01:41:34 +01:00