Commit Graph

88 Commits

Author SHA1 Message Date
nuno maduro 1c21a7647a chore: fixes types 2026-05-13 12:20:00 +01:00
nuno maduro 945d476409 fix: allow to update individual screenshots 2026-04-15 08:34:06 -07:00
nuno maduro 2a80101f42 chore: update styling 2026-03-10 21:06:28 +00:00
Nuno Maduro 3b72bbd7fe fix: toMatchObject accept objects 2025-08-03 11:08:11 -06:00
Nuno Maduro 222ed174bc style 2025-07-25 21:10:05 -06:00
nuno maduro 1d8d1a046f Merge pull request #1357 from drsdre/patch-1
toMatchArray/Object wrong field fix
2025-07-26 04:06:12 +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 f68d11ccae chore: bumps dependencies 2025-03-29 17:44:06 +00:00
AFS 2c3a53f6cd Remove reset of message
Reset approach was not the right one.
2025-02-25 15:44:32 +01:00
AFS 0bdaef29e9 Fix lingering }
Remove remaining } in toMatchObject.
2025-02-25 15:41:17 +01:00
AFS 1ad30a97b3 toMatchArray/Object wrong field fix
The functions toMatchArray and toMatchObject indicate that the wrong field is mismatching from the second loop on because the 'message' is overwritten and taken into the following loop. This patch creates a $second_message for the second test (value test) to keep the error message correct.
2025-02-25 15:34:37 +01:00
tal7aouy e3bfcbe5f1 Add slugify method 2024-09-16 13:36:34 +01:00
Nuno Maduro 5ae5ac9a54 fix: removes both toHaveMethod and toHaveMethods 2024-08-28 16:30:29 -05:00
Nuno Maduro 45cce6ce93 Style 2024-07-24 21:54:52 +01:00
Morten Harders 55f6b5696e Added toBeList expectation 2024-05-21 08:13:20 +02:00
Nuno Maduro 1153531104 Merge pull request #1055 from mapon-com/feature/string-comparison-expectations
[2.x] Allow string type in greaterThan/lessThan expectations
2024-01-25 16:48:27 +00:00
Nuno Maduro 0aecd5d5d7 Merge pull request #974 from erikgaal/expect-to-contain-equals
[2.x] Add `toContainEquals` expectation
2024-01-25 14:38:55 +00:00
Nuno Maduro e95c4ee636 feat(toContainEqual): adds method name 2024-01-25 14:38:44 +00:00
Nuno Maduro b9d2be87a2 fix: missing things on junit 2024-01-20 13:21:57 +00:00
Nuno Maduro 6fed7545c0 Merge pull request #990 from rudashi/patch-1
[2.x] Fix typo in `toHaveProperties` PHPDoc block
2024-01-13 01:44:16 +00:00
Pauls Nartišs b1c59ec2e6 feat: allow string type in gt/lt expectations 2024-01-05 16:21:02 +02:00
Nuno Maduro 453133d382 chore: code style changes 2023-12-15 11:42:09 +00:00
Borys Żmuda 8be46b57a0 Update toHaveProperties() $names param 2023-11-24 09:16:13 +01:00
Mark Huot da20a62e49 Add toSnapshot() early return
Sometimes objects need native toString() and toArray() methods that are different from what you want to snapshot.

This adds an explicit toSnapshot() method that will be called first (when set) allowing for better snapshot values than the generic methods offer.
2023-11-21 22:56:21 -05:00
Borys Żmuda 2cbecd10e6 Fix typo in toHaveProperties() PHPDoc block 2023-10-23 11:23:53 +02:00
JonPurvis 5101b9dce3 add to be url expectation 2023-10-09 20:02:11 +01:00
Nuno Maduro 6068ef6150 feat: adds support for PHPUnit 10.4 2023-10-06 13:33:31 +01:00
Erik Gaal 37c40cb735 Add toContainEquals expectation 2023-10-03 10:55:57 +02:00
JonPurvis be0d9e964b add toBeBetween() expectation 2023-09-22 01:55:06 +01:00
Nuno Maduro d1aeabc9da chore: style changes 2023-09-06 12:19:27 +01:00
Nuno Maduro 9c859ae7c4 Merge branch '2.x' into to_be_uuid 2023-09-06 11:53:58 +01:00
Thai Nguyen Hung 42323e27b1 fix: correct method name 2023-09-06 08:21:42 +07:00
AJ Meireles 3927177b23 finishing the code 2023-09-05 20:36:18 -03:00
Thai Nguyen Hung 038fd80428 feat: toBeUUID expectation 2023-09-05 08:25:02 +07:00
Owen Voke 8a44d3f136 chore: resolve toHaveSameSize parameter 2023-08-23 11:28:41 +01:00
Nuno Maduro afb3dd459a Merge pull request #924 from hungthai1401/to_have_same_size_expectation
[2.x] Add `toHaveSameSize` expectation
2023-08-23 10:14:17 +01:00
Thai Nguyen Hung b6e3ffafa7 fix: phpstan 2023-08-23 08:14:27 +07:00
Thai Nguyen Hung dfcdaa3f8e feat: toHaveSameSize expectation 2023-08-22 11:10:25 +07:00
Thai Nguyen Hung 60b615ea6a fix: inconsistent type in InvalidExpectationValue exception at toHaveCount expectation 2023-08-22 10:35:07 +07:00
Maurizio 1c7b254395 Merge branch '2.x' into feat/string-case-expectations 2023-08-19 10:28:48 +02:00
Maurizio de1c721cd9 chore: improve error messages 2023-08-19 10:27:21 +02:00
Maurizio 997b0e9368 feat: add toBeStudlyCase 2023-08-17 20:49:40 +02:00
Maurizio a76414aeee feat: add toBeCamelCase 2023-08-17 20:49:21 +02:00
Maurizio d2096df82a feat: add toBeKebabCase 2023-08-17 20:48:51 +02:00
Maurizio 4951b1b0f9 feat: add toBeSnakeCase 2023-08-17 20:48:18 +02:00
AJ Meireles 398e3ff3b5 introducing toBeDigits 2023-08-14 17:10:58 -03:00
JonPurvis f996a48dfa fix refacto check 2023-08-12 18:14:38 +01:00
JonPurvis 54e00dd4dc add expectations for uppercase, lowercase, alpha and alphanumeric 2023-08-12 16:41:15 +01:00
Fabio Ivona 9afe2296a6 fix line endings on Windows 2023-08-02 10:45:30 +02:00