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
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
8e32b88fc8
add tests
2021-08-07 08:22:26 +03:00
9ec0762d41
tests: refactors toBeTruthy and toBeFalsy
2021-08-04 22:56:18 +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
022ad4be0d
Merge branch 'master' into bound-datasets
...
# Conflicts:
# tests/.snapshots/success.txt
2021-07-31 23:27:38 +01:00
675b0f1ec8
implements multiple needles in expect()->toContain()
2021-07-31 18:29:03 +02:00
d8fae6d689
Datasets can now access the test case and are executed after the setup method has run.
2021-07-28 10:39:39 +01:00
671f3df115
fix tests
2021-07-28 01:00:19 +02:00
5f574ded81
add toBeIn
2021-07-28 00:36:43 +02:00
4c8c42cd20
Refactor
2021-07-21 08:47:55 +01:00
09682dd393
Alters test to prove order doesn't matter
2021-07-21 08:16:54 +01:00
3bdba9210d
Adds another test
2021-07-21 07:44:05 +01:00
371620d161
Adds support for receiving datasets in higher order tests
2021-07-21 07:40:19 +01:00
5907164749
Merge pull request #341 from pestphp/hot-hoe
...
Adds support for Higher Order Expectations in Higher Order Tests
2021-07-12 11:52:04 +01:00
c160d97428
Forces higher order test callable expects to be closures.
2021-07-11 07:56:02 +01:00
2a8de0565f
Adds support for Higher Order Expectations in Higher Order Tests
2021-07-09 16:50:15 +01:00
99ea9f42e5
Allows you to just specify an exception message when calling throws.
2021-07-08 18:32:02 +01:00
6ce678d1c2
Adds an extra test to ensure that skipping takes place before higher order callables.
2021-07-08 17:52:56 +01:00
5049b996db
Merge branch 'master' into skip-closure-support
...
# Conflicts:
# src/Support/HigherOrderMessage.php
2021-07-08 17:50:48 +01:00
b97e206f7a
Closures passed to the skip method are now bound to the test case to allow for more complex logic.
2021-07-08 09:44:28 +01:00
7e9edecc7f
Higher Order Tests now resolve callable expectations. The tap method now always returns the test case.
2021-07-06 14:05:40 +01:00
e6b258534a
Merge branch 'master' into higher-order-tap-and-defer
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-24 22:57:48 +01:00
acef002a2d
Adds tap for Higher Order tests
2021-06-24 22:57:26 +01:00
4f67eff619
Start of work
2021-06-24 21:38:02 +01:00
ff527baa1d
Allows and in Higher Order Expectations.
2021-06-24 21:31:12 +01:00
09d9bae988
Merge branch 'master' into nested-higher-order-expectations
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 22:01:30 +01:00
1d415eb7fb
Merge branch 'master' into nested-higher-order-expectations
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 21:49:05 +01:00
7c4dd2f2e7
Merge branch 'master' into non-callable-sequence
...
# Conflicts:
# tests/.snapshots/success.txt
2021-06-18 21:45:02 +01: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
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
ea696f819e
feat: move Coverage out of external plugin
2021-06-15 14:26:57 +01:00
dd2921fd26
tests: fixes snapshots
2021-06-10 19:26:42 +01:00
49de462250
Adds support for incompleted tests
2021-06-10 19:20:16 +01:00
95e8add29b
Merge pull request #303 from def-studio/matrix-datasets
...
Matrix datasets
2021-06-10 18:43:31 +01:00
b682fe631d
chore: bumps expectation plugin
2021-06-10 18:40:38 +01:00
838ac273ab
writed tests with multiple datasets
...
Took 1 hour 6 minutes
2021-05-25 23:56:46 +02:00
9027411004
feat(mock-plugin): moves mock stuff to their own plugin
2021-05-15 23:43:37 +01:00
88dc74bbe4
feat(mock): updates tests
2021-05-15 01:02:58 +01:00
7023cec432
feat(mock): updates tests
2021-05-15 01:01:46 +01:00