546d19fd84
chore: cs
2022-05-12 20:03:22 +01:00
dccd8239dd
handles toThrow exception with a "class not found" error
2022-02-18 18:01:09 +01:00
63c1faa9f4
Prevents issues with callables in sequence
2021-11-25 16:37:23 +00:00
11eb1903c2
release: v1.21.0
2021-11-17 10:54:00 +00: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
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