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
c776bcf86d
add toThrow expectation
2021-08-01 12:33:09 -04:00
675b0f1ec8
implements multiple needles in expect()->toContain()
2021-07-31 18:29:03 +02:00
671f3df115
fix tests
2021-07-28 01:00:19 +02:00
2dd77001b7
static analysis fix
2021-07-28 00:42:54 +02:00
5f574ded81
add toBeIn
2021-07-28 00:36:43 +02:00
22a1aac84a
Fixes types
2021-06-18 22:08:47 +01:00
3a20696da4
CS
2021-06-18 22:03:51 +01:00
09d9bae988
Merge branch 'master' into nested-higher-order-expectations
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 22:01:30 +01:00
27de6106ab
Adds type hinting
2021-06-18 22:01:16 +01:00
aeded0a356
refacto: coding style updates
2021-06-18 22:01:14 +01:00
1d415eb7fb
Merge branch 'master' into nested-higher-order-expectations
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 21:49:05 +01:00
8a384a6d65
Merge fixes
2021-06-18 21:46:57 +01:00
7c4dd2f2e7
Merge branch 'master' into non-callable-sequence
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 21:45:02 +01:00
4bf69b97bd
feat(json): updates docs
2021-06-18 12:06:41 +01:00
ecb37fce91
Refactoring to use toBeJson()
...
Refactoring according to @lukeraymonddowning suggestion
2021-06-18 13:04:31 +02:00
c1b27579ca
Method json() to parse JSON strings
...
- Parse a JSON string into array
- Test
2021-06-18 12:43:17 +02:00
9e9d1cc8cc
Merge branch 'master' into nested-higher-order-expectations
...
# Conflicts:
# src/Expectation.php
# tests/.snapshots/success.txt
2021-06-17 00:17:25 +01:00
579bb1b90c
Updates DocBlock type hinting
2021-06-17 00:15:42 +01:00
7ff64540a6
Adds nested Higher Order Expectations.
2021-06-16 20:48:23 +01:00
241d4cf94c
Reimplements non-callable sequence values.
2021-06-16 20:34:17 +01:00
a5ce2dc1a1
Reimplements the new toHaveArray features.
2021-06-16 20:27:36 +01:00
c07cd8c252
feat: move Expectations API out of external plugin
2021-06-15 17:10:21 +01:00
5d7f262f4a
feat: removes expectation api for a plugin
2020-12-13 22:35:30 +01:00
03dc11c2f6
Adds expect extend
2020-11-29 16:30:57 +01:00
c71490b472
feat(feedback-on-to-match): uses contextual messages inside expectations
2020-11-27 21:52:44 +01:00
3fd24d96d3
feat: casts to array using toArray
2020-11-23 21:37:35 +01:00
7bea51fe09
feat: adds toMatchArray
2020-11-23 21:26:02 +01:00
e3e4815b55
chore(expectations): rename 'toMatchRegEx' to 'toMatch'
2020-09-21 20:20:21 +01:00
16b9f54dc3
feat(expectations): add toMatchRegEx
2020-09-21 20:18:58 +01:00
76d0f9cfc1
feat(expectations): add toMatchConstraint
2020-09-16 19:02:33 +01:00
04fafe742c
feat(expectations): add toEndWith
2020-09-16 08:21:46 +01:00
cad8a41e6d
feat(expectations): add toStartWith
2020-09-16 08:20:00 +01:00
4e184b2f90
Adds toMatchObject
2020-09-15 21:53:25 +02:00
204f343831
feat: adds toHaveKeys expectation
2020-09-13 15:15:37 +02:00
50cd1056eb
feat(expectations): add file assertions
2020-08-13 10:03:23 +01:00
439ebcdcaf
feat(expectation-api): adds failed assertations on not methods
2020-08-09 19:08:27 +01:00
7529d44f81
Polishing Expectation API
2020-07-26 17:20:58 +02:00
c4c768dcaa
tests: update snapshots
2020-07-18 18:57:14 +02:00
f0f79ab244
feat(expect): add more methods
2020-07-16 07:34:43 +01:00
1e61144cd2
feat(expect): handle property calls to opposite expectations
2020-07-15 01:05:36 +02:00
2751bc9674
feat(expect): fixes to contain with strings
2020-07-15 00:57:31 +02:00
e2deaae6c9
feat(expect): makes expect work with pending higher order tests
2020-07-15 00:34:59 +02:00