Commit Graph

203 Commits

Author SHA1 Message Date
b3d3b4485d Do not nest expectations 2022-01-16 22:32:20 +10:00
b1f9ce2283 refacto: structure 2021-12-05 14:40:08 +00:00
e64b6fe924 refacto: pipes 2021-12-05 14:21:11 +00:00
98db677646 refacto: pipes 2021-12-05 14:03:09 +00:00
05f44ed84a fix phpstan 2021-11-29 10:06:00 +01:00
6e7890c206 fix phpstan 2021-11-29 09:58:48 +01:00
0fc90ec181 Merge branch 'master' into next-1 2021-11-29 09:36:07 +01:00
337d55b9ab lint 2021-11-29 09:25:00 +01:00
beb14ce5f4 Improved generics for higher order 2021-11-27 18:48:58 +00:00
d10b8f5d2c Merge branch 'master' into next-1 2021-11-26 16:25:40 +01:00
cdd67a6900 merge from master 2021-11-26 15:29:21 +01:00
fce24ef01f Port from 1.x 2021-11-26 15:29:18 +01:00
86dca12c09 refacto(phpstan-to-8): few adjustments 2021-11-26 15:29:18 +01:00
0b5cea6df1 upgrade to phpstan lvl 9 2021-11-26 15:29:18 +01:00
f3371e51fe wip toward lvl9 2021-11-26 15:29:18 +01:00
3829623984 Port from 1.x 2021-11-25 16:49:10 +00:00
94585789dc refacto(phpstan-to-8): few adjustments 2021-11-18 23:39:37 +00:00
7ea6d8a35d upgrade to phpstan lvl 9 2021-11-18 23:27:37 +01:00
7bcd3ebaee wip toward lvl9 2021-11-18 01:01:56 +01:00
5287eff507 merge from master 2021-11-15 11:54:42 +01:00
b2cd60395f chore: phpstan level 5 2021-11-14 21:39:24 +00:00
2b687a7269 refactor: PHP 8 features 2021-10-24 18:29:59 +01: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
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
d802e88148 moved old Expectation in CoreExpectation.php and made Expectation.php a decorator for it 2021-10-07 22:59:46 +02:00
66d47e4922 fix: usage on PHP 7.3 2021-09-25 09:39:17 +01: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
f0ddd10a54 Merge branch 'master' into method-match 2021-09-24 21:16:43 +01:00
3c3e6b160b refactor: expectation when 2021-09-24 21:10:02 +01:00
c99f8f196e lint 2021-09-24 14:42:26 +03:00
9cc4ecd5ab Merge branch 'master' into method-match 2021-09-24 14:39:21 +03:00
7f214f9e12 use and() instead of new self 2021-09-24 13:59:00 +03:00
da258fa89f remove the warning 2021-09-24 13:55:16 +03:00
543b9542ae add new match() method 2021-09-23 06:55:28 +03:00
847b06e558 add when() method 2021-09-23 03:35:41 +03:00
12e63c7376 add new assertion 2021-09-16 18:09:45 +03:00
253e9d10c8 Fix types 2021-09-03 04:44:10 -04: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
4f386894bd Revert "Use toHaveCount"
This reverts commit 2289adade2.
2021-08-28 18:14:55 +02:00
2289adade2 Use toHaveCount
changes to toHaveCount
2021-08-28 17:54:29 +02:00
8367af22e7 Adds toHaveLength() Expectation & Tests
Adds toHaveLength() Expectation and its tests. toHaveLength checks if the given value has the informed length. Works with strings, array, object and collections.
2021-08-28 17:02:09 +02:00
2125bf9668 chore: adjusts tests 2021-08-26 21:14:56 +01:00
dbf3c0a8cf Merge pull request #361 from kbond/throw-expectation
Add `toThrow` expectation
2021-08-26 21:02:38 +01:00
8ee07330b3 Add toBeFalsy 2021-08-03 20:55:07 -04:00
cffde4564d Add toBeTruthy 2021-08-03 20:54:56 -04:00