Commit Graph

72 Commits

Author SHA1 Message Date
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
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