Commit Graph

505 Commits

Author SHA1 Message Date
Nuno Maduro cda4665979 Merge pull request #492 from danilopolani/feat/covers-attribute
[2.x] Add `covers` attribute
2022-03-09 10:24:58 +00:00
danilopolani 09e2a26b7d fix linting 2022-03-09 11:09:03 +01:00
danilopolani 3dc451cf44 fix typo 2022-03-09 11:08:11 +01:00
danilopolani 3795870150 move coversNothing to method annotations 2022-03-09 11:05:10 +01:00
danilopolani a027e24e3c fix typo 2022-03-08 15:02:30 +01:00
danilopolani 15e2e1711b enforce class-string for attributes 2022-03-08 14:57:17 +01:00
Owen Voke 3ffed844a6 style: apply fixes from PHP-CS-Fixer 2022-03-08 10:51:38 +00:00
Markus Hebenstreit 3601d01bd5 Added dump helper to Expectation class 2022-03-08 10:41:09 +01:00
danilopolani d0136b63d4 fix linting 2022-03-07 18:23:06 +01:00
danilopolani 00029c15ef add generic covers method to accept both classes and functions 2022-03-07 18:22:30 +01:00
danilopolani a5cbdea868 fix phpstan issues 2022-03-07 17:51:47 +01:00
danilopolani edd1d890ca replace double foreach with a filter and reduce 2022-03-07 17:51:39 +01:00
danilopolani 443f848386 fix fqn for coversClass 2022-03-07 17:40:29 +01:00
danilopolani 32dbac87c8 fix fqn on coversClass attribute and array evaluation 2022-03-07 16:18:55 +01:00
danilopolani 1dc33070fe fix phpdoc 2022-03-06 19:02:02 +01:00
danilopolani 1079793ccf cleanup 2022-03-05 17:25:23 +01:00
danilopolani 21364779f9 move covers attribute above the class 2022-03-05 17:23:03 +01:00
danilopolani 50d8688b79 allow multiple values on coversClass and coversFunction 2022-03-05 17:06:00 +01:00
danilopolani 27baad82d0 remove method name on coversClass 2022-03-05 17:03:45 +01:00
danilopolani a894386b49 pass methods name to attribute surrounded by quotes 2022-03-05 16:51:12 +01:00
danilopolani 2465b88462 add covers list and attributes mutator 2022-03-05 16:23:05 +01:00
danilopolani 7660517f7c start covers attribute implementation 2022-03-04 22:28:37 +01:00
Fabio Ivona 03ccea8978 fix code style 2022-03-04 17:36:02 +01:00
Nuno Maduro ed89689425 Merge pull request #490 from mkohei/feat/add-code-to-the-throws-arg
feat: Add code to the throws arg
2022-03-04 15:27:33 +00:00
Kohei Matsumoto 0e85921964 feat: Add code to the throws arg 2022-03-04 13:05:55 +09:00
Owen Voke 51ec80f11f fix: resolve PHPStan warnings 2022-03-03 18:20:24 +00:00
Fabio Ivona 2c3a296040 fix types 2022-02-18 16:42:34 +01:00
Fabio Ivona 10b204e19d handles toThrow exception with a "class not found" error 2022-02-18 16:40:31 +01:00
Fabio Ivona 6f9ebe04b0 phpstan fix 2022-02-05 11:36:02 +01:00
Luke Downing 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
Luke Downing e91c85496f Adds support for scoped in HigherOrderExpectations. 2022-01-23 23:37:03 +00:00
Nuno Maduro 6bf92d20ad Merge pull request #465 from pestphp/v2_json_fix
Makes `json` expectation usable in Higher Order Tests
2022-01-23 23:29:35 +00:00
Luke Downing b99f65d936 Renames tap to defer. 2022-01-23 23:18:55 +00:00
Luke Downing ead2dfd0a9 Makes json expectation usable in Higher Order Tests 2022-01-23 23:10:14 +00:00
Dan Harrin 635a71ce66 feature 2022-01-20 10:21:57 +00:00
Andrea Marco Sartori d24091d224 Fix return docblock 2022-01-16 22:32:38 +10:00
Andrea Marco Sartori b3d3b4485d Do not nest expectations 2022-01-16 22:32:20 +10:00
Nuno Maduro dd081c59b7 refacto: memory plugin 2021-12-05 17:48:51 +00:00
Nuno Maduro 6dcdfdb82f Merge branch 'master' into feat/retry 2021-12-05 17:44:20 +00:00
Owen Voke 266447bcc0 feat: add --memory usage flag 2021-12-05 17:22:21 +00:00
Nuno Maduro b1f9ce2283 refacto: structure 2021-12-05 14:40:08 +00:00
Nuno Maduro e64b6fe924 refacto: pipes 2021-12-05 14:21:11 +00:00
Nuno Maduro c8697e0310 chore: fixes style 2021-12-05 14:05:01 +00:00
Nuno Maduro 98db677646 refacto: pipes 2021-12-05 14:03:09 +00:00
Nuno Maduro 106b279ed0 feat: adds --retry option 2021-12-04 21:18:55 +00:00
Fabio Ivona 05f44ed84a fix phpstan 2021-11-29 10:06:00 +01:00
Fabio Ivona 6e7890c206 fix phpstan 2021-11-29 09:58:48 +01:00
Fabio Ivona 2d2760e15c fix phpstan 2021-11-29 09:52:18 +01:00
Fabio Ivona b2eb69cbc1 fix phpstan 2021-11-29 09:48:10 +01:00
Fabio Ivona 0fc90ec181 Merge branch 'master' into next-1 2021-11-29 09:36:07 +01:00