Commit Graph

71 Commits

Author SHA1 Message Date
355a2349af feat: allows array formats 2023-07-01 10:31:26 +01:00
36b585835d feat: adds snapshot testing 2023-07-01 10:31:26 +01:00
f8930d20ae allows to check toThrow against an exception instance 2023-05-01 21:42:47 +02:00
2e25eb59b8 style: fixes 2023-04-25 21:32:09 +01:00
1a05df14d0 chore: bumps dependencies 2023-04-19 09:49:26 +01:00
3b9ca8853f fix: various typos fixed 2023-04-03 07:50:25 +02:00
31726b51ad update toHaveProperties 2023-04-02 11:15:31 +01:00
a8bd353ba6 Including tests for Date and DateTimeImmutable 2023-03-21 15:24:42 +01:00
427ee89ae6 feat: improves exporter 2023-02-13 23:56:19 +00:00
60358461c4 feat: add support for toHaveMethod and toHaveMethods 2023-01-29 12:35:21 +00:00
961e44b5ad revert expectation failure message arg back to $message 2022-09-19 11:10:51 +02:00
f3a748fee3 create Any matcher 2022-09-19 11:00:13 +02:00
bac941715a rename message key to failureMessage 2022-09-19 10:37:37 +02:00
8a3caa5e7f add custom message to failed expectations 2022-09-19 09:03:27 +02:00
fa1145dced Moves Laravel stuff to plugin 2022-09-18 15:59:29 +01:00
e9564febaf Migrates to Pint 2022-09-16 10:45:53 +01:00
3ff95faaaa Uses Collision ^7.0 2022-09-15 01:07:15 +01:00
38a82cd142 fix types 2022-08-29 14:04:47 +02:00
1706e1d2e0 fix lint 2022-08-02 11:01:17 +02:00
452d4b26b9 add new expectation 2022-05-08 11:13:45 +02:00
77b7181b08 Make 'toHaveKeys' accept multi-dimensional associative arrays 2022-04-29 15:17:36 +02:00
3ffed844a6 style: apply fixes from PHP-CS-Fixer 2022-03-08 10:51:38 +00:00
36130eb7a0 adds a failing test 2022-02-18 16:40:17 +01:00
8baaf80691 Merge branch 'master' into scoped
# Conflicts:
#	src/Expectations/HigherOrderExpectation.php
#	tests/Features/Expect/HigherOrder/methods.php
2022-01-23 23:44:04 +00:00
e91c85496f Adds support for scoped in HigherOrderExpectations. 2022-01-23 23:37:03 +00:00
ead2dfd0a9 Makes json expectation usable in Higher Order Tests 2022-01-23 23:10:14 +00:00
12b48a6cf6 move to new test 2022-01-20 10:34:32 +00:00
b99c4d611b test 2022-01-20 10:21:54 +00:00
30b1f6cd0a Add test for and() 2022-01-16 22:32:55 +10:00
b74a688677 tests: style 2021-12-05 14:59:07 +00:00
b1f9ce2283 refacto: structure 2021-12-05 14:40:08 +00:00
7fd9cfa2e9 refactor 2021-11-26 15:44:35 +01:00
3df78f2edf Merge branch 'pipes-and-interceptors' into next-1
# Conflicts:
#	src/Concerns/Extendable.php
#	src/CoreExpectation.php
#	src/Expectation.php
#	src/Support/ExpectationPipeline.php
#	src/Support/Extendable.php
2021-11-26 15:31:40 +01:00
3943919709 implemements pipelines and adds tests for it 2021-10-31 15:23:28 +01:00
0346450a51 adds test to check if pipes can add parameters to an expectation 2021-10-10 01:09:45 +02:00
fc53f08e37 implemented pipe closure with $next as the first parameter 2021-10-10 01:02:04 +02:00
bc4e5b9b4e implemented pipe closure with $next as the last parameter 2021-10-10 00:16:21 +02:00
c3a445534b adds tests 2021-10-09 12:03:12 +02:00
55376d32e5 moved decorate implementation to dedicated intercept and pipe calls 2021-10-09 10:22:24 +02:00
e92d9bfaae implements decorators pipeline 2021-10-08 15:29:35 +02:00
7691e3c602 Merge pull request #399 from mertasan/sequence
Fix: `sequence()` can generate false positives
2021-09-24 22:15:49 +01:00
b43a59868d feat: adds unless expectation 2021-09-24 22:12:08 +01:00
457972716f refactor: expectation match method 2021-09-24 22:02:18 +01:00
9cc4ecd5ab Merge branch 'master' into method-match 2021-09-24 14:39:21 +03:00
da258fa89f remove the warning 2021-09-24 13:55:16 +03:00
f6131d042b add tests
The filename is not accepted as `match.php`
2021-09-23 06:56:47 +03:00
f41c3ce9ba add tests 2021-09-23 03:35:46 +03:00
3dd10b3c7c change test 2021-09-16 18:09:59 +03:00
4331b2aaf6 Add toHaveProperties 2021-09-03 04:26:57 -04:00
042f2ec3f3 Use mb_strlen instead of grapheme_strlen
Due to inconsistent behave, mb_strlen will be used.
2021-08-29 12:55:37 +02:00