Nuno Maduro
453133d382
chore: code style changes
2023-12-15 11:42:09 +00: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
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
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
Fabio Ivona
4e719214c6
fix incomplete tests while updating snapshots
2023-08-01 17:13:15 +02:00
Fabio Ivona
1efb9de043
multiple snapshots
2023-07-27 11:46:22 +02:00
Fabio Ivona
b60d21dfe2
snapshots code cleanup
2023-07-27 11:16:27 +02:00
Nuno Maduro
c7e6df7c95
chore: coding style
2023-07-15 15:11:03 +01:00
Nuno Maduro
19e75d1070
chore: coding style
2023-07-01 10:31:26 +01:00
Nuno Maduro
355a2349af
feat: allows array formats
2023-07-01 10:31:26 +01:00
Nuno Maduro
e541ee86fc
feat: adds "Illuminate\Testing\TestResponse" behavior to snapshot testing
2023-07-01 10:31:26 +01:00
Nuno Maduro
36b585835d
feat: adds snapshot testing
2023-07-01 10:31:26 +01:00
Nuno Maduro
7460bd6c1f
chore: adjusts style
2023-06-13 19:59:59 +02:00
Fabio Ivona
f8930d20ae
allows to check toThrow against an exception instance
2023-05-01 21:42:47 +02:00
Nuno Maduro
81cdb7a300
chore: refacto
2023-04-08 12:23:10 +01:00
Lucas Giovanny
31726b51ad
update toHaveProperties
2023-04-02 11:15:31 +01:00
Nuno Maduro
341ba56bb9
fix: uses DateTimeInterface instead
2023-03-22 09:46:23 +00:00
Dan Ang
ecbaff503e
Add Date/DateTimeImmutable to Expectations
2023-03-21 14:37:17 +01:00
Nuno Maduro
f309e06292
fix: assertions on opposite expectations
2023-02-18 15:27:25 +00:00
Nuno Maduro
427ee89ae6
feat: improves exporter
2023-02-13 23:56:19 +00:00
Owen Voke
60358461c4
feat: add support for toHaveMethod and toHaveMethods
2023-01-29 12:35:21 +00:00
Nuno Maduro
e1e926076a
fix: types on arch expectations
2022-12-14 14:56:11 +00:00
Nuno Maduro
68bf8a2d26
feat: adds arch related expectations
2022-12-13 15:27:22 +00:00
Nuno Maduro
3e325e3364
chore: improves type checking
2022-11-09 20:34:18 +00:00
Fabio Ivona
961e44b5ad
revert expectation failure message arg back to $message
2022-09-19 11:10:51 +02:00
Fabio Ivona
f3a748fee3
create Any matcher
2022-09-19 11:00:13 +02:00
Fabio Ivona
bac941715a
rename message key to failureMessage
2022-09-19 10:37:37 +02:00
Fabio Ivona
8a3caa5e7f
add custom message to failed expectations
2022-09-19 09:03:27 +02:00
Nuno Maduro
1e7e164d84
Removes non-readonly property
2022-09-16 11:28:25 +01:00