3b72bbd7fe
fix: toMatchObject accept objects
2025-08-03 11:08:11 -06:00
222ed174bc
style
2025-07-25 21:10:05 -06:00
1d8d1a046f
Merge pull request #1357 from drsdre/patch-1
...
toMatchArray/Object wrong field fix
2025-07-26 04:06:12 +01:00
f9901245f1
updates dependencies and snapshots
2025-07-22 23:51:32 +01:00
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
f68d11ccae
chore: bumps dependencies
2025-03-29 17:44:06 +00:00
2c3a53f6cd
Remove reset of message
...
Reset approach was not the right one.
2025-02-25 15:44:32 +01:00
0bdaef29e9
Fix lingering }
...
Remove remaining } in toMatchObject.
2025-02-25 15:41:17 +01:00
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
e3bfcbe5f1
Add slugify method
2024-09-16 13:36:34 +01:00
5ae5ac9a54
fix: removes both toHaveMethod and toHaveMethods
2024-08-28 16:30:29 -05:00
45cce6ce93
Style
2024-07-24 21:54:52 +01:00
55f6b5696e
Added toBeList expectation
2024-05-21 08:13:20 +02:00
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
0aecd5d5d7
Merge pull request #974 from erikgaal/expect-to-contain-equals
...
[2.x] Add `toContainEquals` expectation
2024-01-25 14:38:55 +00:00
e95c4ee636
feat(toContainEqual): adds method name
2024-01-25 14:38:44 +00:00
b9d2be87a2
fix: missing things on junit
2024-01-20 13:21:57 +00:00
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
b1c59ec2e6
feat: allow string type in gt/lt expectations
2024-01-05 16:21:02 +02:00
453133d382
chore: code style changes
2023-12-15 11:42:09 +00:00
8be46b57a0
Update toHaveProperties() $names param
2023-11-24 09:16:13 +01:00
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
2cbecd10e6
Fix typo in toHaveProperties() PHPDoc block
2023-10-23 11:23:53 +02:00
5101b9dce3
add to be url expectation
2023-10-09 20:02:11 +01:00
6068ef6150
feat: adds support for PHPUnit 10.4
2023-10-06 13:33:31 +01:00
37c40cb735
Add toContainEquals expectation
2023-10-03 10:55:57 +02:00
be0d9e964b
add toBeBetween() expectation
2023-09-22 01:55:06 +01:00
d1aeabc9da
chore: style changes
2023-09-06 12:19:27 +01:00
9c859ae7c4
Merge branch '2.x' into to_be_uuid
2023-09-06 11:53:58 +01:00
42323e27b1
fix: correct method name
2023-09-06 08:21:42 +07:00
3927177b23
finishing the code
2023-09-05 20:36:18 -03:00
038fd80428
feat: toBeUUID expectation
2023-09-05 08:25:02 +07:00
8a44d3f136
chore: resolve toHaveSameSize parameter
2023-08-23 11:28:41 +01:00
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
b6e3ffafa7
fix: phpstan
2023-08-23 08:14:27 +07:00
dfcdaa3f8e
feat: toHaveSameSize expectation
2023-08-22 11:10:25 +07:00
60b615ea6a
fix: inconsistent type in InvalidExpectationValue exception at toHaveCount expectation
2023-08-22 10:35:07 +07:00
1c7b254395
Merge branch '2.x' into feat/string-case-expectations
2023-08-19 10:28:48 +02:00
de1c721cd9
chore: improve error messages
2023-08-19 10:27:21 +02:00
997b0e9368
feat: add toBeStudlyCase
2023-08-17 20:49:40 +02:00
a76414aeee
feat: add toBeCamelCase
2023-08-17 20:49:21 +02:00
d2096df82a
feat: add toBeKebabCase
2023-08-17 20:48:51 +02:00
4951b1b0f9
feat: add toBeSnakeCase
2023-08-17 20:48:18 +02:00
398e3ff3b5
introducing toBeDigits
2023-08-14 17:10:58 -03:00
f996a48dfa
fix refacto check
2023-08-12 18:14:38 +01:00
54e00dd4dc
add expectations for uppercase, lowercase, alpha and alphanumeric
2023-08-12 16:41:15 +01:00
9afe2296a6
fix line endings on Windows
2023-08-02 10:45:30 +02:00
4e719214c6
fix incomplete tests while updating snapshots
2023-08-01 17:13:15 +02:00
1efb9de043
multiple snapshots
2023-07-27 11:46:22 +02:00
b60d21dfe2
snapshots code cleanup
2023-07-27 11:16:27 +02:00