Commit Graph

1015 Commits

Author SHA1 Message Date
Francescu Garoby 77b7181b08 Make 'toHaveKeys' accept multi-dimensional associative arrays 2022-04-29 15:17:36 +02:00
Nuno Maduro 6e120d60f6 Merge pull request #508 from danilopolani/feat/drop-php8.0-support
Drop support for PHP 8.0
2022-04-01 17:10:07 +01:00
danilopolani 10ff36480a drop support for php 8.0 2022-04-01 18:05:04 +02:00
Nuno Maduro ffb20c9956 Merge pull request #506 from danilopolani/feat/phpunit-tests-folder
[2.x] Read tests folder from PHPUnit.xml file
2022-04-01 16:39:09 +01:00
danilopolani 751a532124 start ConfigLoader tests 2022-04-01 14:34:43 +02:00
danilopolani 80c411be44 add config loader to read phpunit file and get the tests directory or fallback 2022-03-30 15:39:50 +02:00
Luke Downing db5c11d96e Merge pull request #449 from pestphp/performs_no_expectations
[2.x] Adds support for chaining `hasNoExpectations` to the test method.
2022-03-22 13:23:08 +00:00
Luke Downing f3ed9bdf8e Merge branch 'master' into performs_no_expectations
# Conflicts:
#	src/PendingCalls/TestCall.php
2022-03-22 13:20:31 +00:00
Luke Downing 53c20d9cd2 Renames method to throwsNoExceptions. 2022-03-22 13:19:23 +00:00
Nuno Maduro fca0c8fc0c Adds sponsor 2022-03-11 19:58:21 +00:00
Nuno Maduro c8aa204ee0 Merge pull request #498 from danilopolani/fix/types
Fix phpstan static errors
2022-03-09 10:51:55 +00:00
danilopolani a3889110f1 fix phpstan types 2022-03-09 11:48:35 +01:00
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
Nuno Maduro 24204adc09 Adds StandWithUkraine banner 2022-03-09 01:11:37 +00: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 d363321db5 Merge pull request #497 from pestphp/feature/style
style: apply fixes from PHP-CS-Fixer
2022-03-08 10:58:16 +00:00
Owen Voke 3ffed844a6 style: apply fixes from PHP-CS-Fixer 2022-03-08 10:51:38 +00:00
Nuno Maduro 9cf1005183 Merge pull request #496 from hebinet/dump-for-expections
[1.x] Add `dump` helper to Expectation class
2022-03-08 10:24:56 +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 985bbf4ea5 add tests for covers attribute 2022-03-07 17:40:43 +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 74470ec96d Merge pull request #491 from def-studio/fix-cs
fix code style
2022-03-04 17:37:26 +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
Nuno Maduro 62d7652376 Merge pull request #489 from owenvoke/bugfix/phpstan-fixes
fix: resolve PHPStan warnings
2022-03-04 08:56:52 +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
Nuno Maduro e08d6f2803 Merge pull request #488 from owenvoke/feature/ci-ansi
ci: update to use ANSI output
2022-03-03 16:08:47 +00:00
Owen Voke 22030bffd0 ci: update to use ANSI output 2022-03-03 16:01:09 +00:00
Nuno Maduro bc105bc818 Merge pull request #484 from fabio-ivona/fix-restore-missing-exception-in-v2
Fix toThrow expectation passing when exception doesn't exist
2022-03-03 14:34:09 +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 36130eb7a0 adds a failing test 2022-02-18 16:40:17 +01:00