All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Initial PHP 8.2 support (d050ef8)
- Initial PHP 8.2 support (#563)
- Debug of high order tests (c1b32b9)
toThrow
expectation when exception does not exist (#487)
- sequence callables causing problems (#442)
- warn about xdebug modes (1e011c)
throwsIf
test call (#371)--ci
CLI option to ignore development options like->local()
(#405)when
conditional expectation (#406)unless
conditional expectation (b43a598)match
conditional expectation (#407)
sequence
with more expectations than iterable elements (#399)
toThrow
expectation (#361)
- Support for new parallel options (#369)
toBeTruthy
andtoBeFalsy
(#367)
- A new bound closure that allows you to access the test case in Datasets (#364)
skip
with false condition marking test as skipped (22b822c)
--force
option to override tests inpest:test
artisan command (#353)- Support for PHPUnit
^9.3.7
(ca9d783)
beforeAll
andafterAll
behind called multiple times per test (#357)
- Support for interacting with datasets in higher order tests (#352)
- The unit test stub now uses the expectation API (#348)
- PhpStorm will no longer show 0 assertions in the output (#349)
- The ability to use higher order expectations inside higher order tests (#341)
- Callable
expect
values in higher order tests failing if the value was an existing method name (#334)
- You may now pass just an exception message when using the
throws
method (#339)
- A new
tap
and test case awareexpect
methods for higher order tests (#331) - Access to test case methods and properties when using
skip
(#338)
- The
and
method not being usable in Higher Order expectations (#330)
- Support for non-callable values in the sequence method, which will be passed as
toEqual
(#323) - Support for nested Higher Order Expectations (#324)
- Adds a new
json
expectation method to improve testing with JSON strings (#325) - Adds dot notation support to the
toHaveKey
andtoHaveKeys
expectations (#322)
- Support for multiple datasets (Matrix) on the
with
method (#303) - Support for incompleted tests (49de462)
- Test cases with the @ symbol in the directory fail (#308)
- Added for PHPUnit 9.5.5 (#310)
- Lock minimum Pest plugin versions (#306)
- Named datasets no longer show the arguments (#302)
- Wraps global functions within
function_exists
(#300)
- Laravel commands failing with new
--test-directory
option (#297)
- Possibility of "hooks" being added using the "uses" function (#282)
- Support for PHPUnit 9.5.3 (#278)
- Support for test extensions (#269)
- Support for PHPUnit 9.5.2 (#267)
- Support for PHPUnit 9.5.1 (#261)
- Fix
TestCase@expect
PHPDoc tag (#251)
pest:test --dusk
option (#245)
- Stable version
- Updates init structure (#240)
- Fix binary path in
pest:dusk
command (#239)
toBeJson()
expectation (plugin-expectations#2)
- Class inheritance with
depends()
(#236)
- Moves expectation API for external plugin (5d7f262)
- Static analysis while using string as key for datasets (#233)
- Resolve issue with name resolution in
depends()
(#216)
- Add support for PHPUnit 9.4.3 (#219)
- Improved the exception output for the TeamCity printer (usage with phpstorm plugin) (#215)
- Add support for PHPUnit 9.4.2 (d177ab5)
- Add support for named datasets in description output (#134)
- Add Pest version to
--help
output (#203) - Add support for PHPUnit 9.4.1 (#207)
- Add support for PHPUnit 9.4.0 (#199)
- Fix chained higher order assertions returning void (#196)
- Add support for PHPUnit 9.3.11 (#193)
toStartWith
andtoEndWith
expectations (#187)
toMatchObject
expectation (4e184b2)
toHaveKeys
expectation (204f343)
- Support to PHPUnit 9.3.9, and 9.3.10 (1318bf9)
- Support to PHPUnit 9.3.8 (#174)
- don't decorate output if --colors=never is set (36b879f)
--init
andpest:install
artisan command output changes (#118, db7c4b1)--version
option to view the current version of Pest (9ea51ca)
depends
phpunit feature (#103)
- datasets name conflict (#101)
- Multiple
uses
in the same path override previoususes
(#97)
--init
option to install Pest on a new blank project (70b3c7e)- pending higher orders tests aka tests without description (aa1917c)
helpers.php
stub provides now namespaced functions- functions provided by plugins are now namespaced functions:
use function Pest\Faker\faker;
it('foo', function () {
$name = faker()->name;
});
- Missing default decorated output on coverage (88d2391)
- Support to Lumen on artisan commands (#18)
- Mockery tests without assertions being considered risky (415f571)
Plugin::uses()
method for making traits globally available (6c4be01)
- Support to custom helpers (#7)
test
function without any arguments returns the current test case (6fc55be)
- "No coverage driver error" now returns proper error on Laravel (28d8822)
- First version