Commit Graph

328 Commits

Author SHA1 Message Date
Sonali dudhia 3927dbfcdf fix: report dataset provider errors as failing tests (#1749)
Errors raised while resolving a test's dataset (missing named dataset,
throwing dataset closure) previously crashed the whole run. Now the data
provider catches them, wraps them in a DatasetProviderError, and the test
method rethrows the original throwable so the affected test fails cleanly
with a non-zero exit code while other tests keep running.
2026-07-17 14:13:01 +01:00
nuno maduro 3aab02d2eb ci: fixes dd test 2026-06-11 10:50:24 +01:00
Punyapal Shah be49a3ce18 Fix: dd (#1692)
* fix: update dd method to return never type

Co-authored-by: Copilot <copilot@github.com>

* fix: enhance var_dump calls to accept additional arguments

* fix: update dd method to handle paratest and collision printer environments

* test: add dd method tests for ExpectationFailedException in parallel mode

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-06-11 10:16:07 +01:00
nuno maduro 87db0b4847 release: v4.6.1 2026-04-15 09:03:09 -07:00
nuno maduro f528bd8427 feat: adds flaky 2026-04-10 19:52:31 +01:00
nuno maduro 729f18a152 fix: stacktrace with nested with calls 2026-04-10 17:25:05 +01:00
nuno maduro bce26aeaad Merge pull request #1634 from dbpolito/dataset_named_params
Dataset Named Parameters
2026-04-10 16:54:57 +01:00
nuno maduro 3a6c2fab37 Merge pull request #1515 from yondifon/fix-trait-inheritance-detection
BugFix: Fix toUseTrait to detect inherited and nested traits
2026-04-10 11:39:56 +01:00
nuno maduro 281dbf6cf4 Merge pull request #1455 from SimonBroekaert/feat/to_be_cased_correctly_arch_test_assertion
feat: add toBeCasedCorrectly arch test assertion
2026-04-10 11:38:46 +01:00
dbpolito be3ff37517 Merge branch '4.x' of https://github.com/pestphp/pest into dataset_named_params 2026-03-26 18:08:26 -03:00
nuno maduro 2a80101f42 chore: update styling 2026-03-10 21:06:28 +00:00
SimonBroekaert 1675dd1d41 chore: add tests for toBeCasedCorrectly() arch test 2026-02-17 19:03:46 +01:00
dbpolito b081584ab6 Improvements 2026-02-11 18:09:09 -03:00
dbpolito 6966802afc Cleanup 2026-02-11 18:02:21 -03:00
dbpolito c61dcad42b Dataset Named Parameters 2026-02-11 17:57:07 -03:00
Nuno Maduro 477d20a54f release: 4.1.3 2025-10-29 22:45:27 +00:00
Malico dc9a1e8ace BugFix: Fix toUseTrait to detect inherited and nested traits 2025-09-20 19:06:23 +01:00
Nuno Maduro 711a60c2db release: beta 1 2025-08-05 17:44:12 +01:00
nuno maduro d6c6489e93 Merge branch '4.x' into fix/sibling-describe-blocks 2025-07-26 04:26:10 +01:00
nuno maduro 520a5fe29d Merge branch '4.x' into 3.x 2025-07-26 03:56:09 +01:00
nuno maduro e513f76ea9 Merge pull request #1256 from mazesec/add-slugify-method
Add slugify Method to Str Class and toBeSlug Assertion to Expectation Class
2025-07-22 23:08:15 +01:00
Nuno Maduro be9c95e3bc feat: adds see 2025-07-22 23:06:43 +01:00
Nuno Maduro 7fc69033f8 chore: adjusts style 2025-06-27 02:15:36 +01:00
Nuno Maduro ef76c04dbe feat: adds fixture 2025-06-27 02:15:28 +01:00
Nuno Maduro 0fc9d4dfe0 feat: adds phpunit 12.2.1 support 2025-06-08 15:29:23 +01:00
Clément Birklé e46d499384 add tests for snapshots external to the tests directory 2025-03-19 16:33:44 +01:00
jshayes b5b8fab09b Fix an issue where beforeEach/afterEach functions were called on other describe blocks with the same name 2025-01-20 17:36:22 -05:00
Nuno Maduro 709ecb1ba2 chore: adjusts tests 2025-01-19 17:35:09 +00:00
Nuno Maduro 6afb36519d release: 3.7.2 2025-01-19 17:16:25 +00:00
jshayes 6968094e2b Add tests 2024-10-13 10:39:17 -04:00
jshayes 7c639cdbbd Add more tests 2024-10-13 00:41:04 -04:00
jshayes a6cd83665c Execute all parent beforeEach and afterEach functions for each test 2024-10-11 23:51:18 -04:00
jshayes 0c57142c03 Fix an issue where a describe block will prevent a beforeEach call from executing 2024-10-11 21:24:08 -04:00
Nuno Maduro 1115c64186 chore: style changes 2024-10-01 11:48:14 +01:00
Simon Rogers b8a1b7e5cc Add tests for strict types expectation
Introduced new test cases to ensure strict type declaration handling. Files with and without strict types are tested, including scenarios with comments preceding the declaration. Updated the regex in `Expectation.php` to accommodate comments and whitespaces before the `declare(strict_types=1)` statement.
2024-09-28 17:31:33 +01:00
Nuno Maduro a55da85dd2 release: v3.2.0 2024-09-23 13:14:03 +01:00
tal7aouy 92bc1decd9 Add tests for toBeSlug method 2024-09-16 13:41:13 +01:00
Nuno Maduro 04af21183a chore: fixes style 2024-09-09 10:53:45 +01:00
Nuno Maduro 09edaa9c2d chore: updates snapshots 2024-09-09 10:49:48 +01:00
Nuno Maduro c6b81e6e12 More fixes 2024-09-06 20:59:54 +01:00
Nuno Maduro 2d80ff19ec feat(mutate): only 2024-09-05 02:49:52 +01:00
Nuno Maduro 98e947e0cc more fixes 2024-09-05 01:19:17 +01:00
Nuno Maduro e6823679dd feat: adds not->toHavePrivateMethods and related 2024-09-04 11:18:41 +01:00
Nuno Maduro e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
Nuno Maduro dde943b993 refacto: toHaveMethod and toHaveMethods 2024-09-02 19:38:38 +01:00
Nuno Maduro 5ae5ac9a54 fix: removes both toHaveMethod and toHaveMethods 2024-08-28 16:30:29 -05:00
Nuno Maduro 8fe2698c28 chore: fixes test suite 2024-08-20 22:57:10 +01:00
Nuno Maduro ad6dca94fa Adds done 2024-08-10 14:27:18 +01:00
Nuno Maduro b6bf01148f feat: toHavePrivateMethodsBesides, toHaveProtectedMethodsBesides, toHavePublicMethodsBesides 2024-08-09 00:24:24 +01:00
Nuno Maduro 651aab560c Allows to set context on todos 2024-08-03 18:42:31 +01:00