Releases: Innmind/BlackBox
Releases · Innmind/BlackBox
5.5.2
5.5.1
5.5.0
5.4.0
5.3.0
Added
Innmind\BlackBox\PHPUnit\Framework\TestCase
Innmind\BlackBox\PHPUnit\Load
Innmind\BlackBox\Application::disableMemoryLimit()
Innmind\BlackBox\Runner\Assert::matches()
Innmind\BlackBox\Runner\Assert::time()
Innmind\BlackBox\Runner\Assert::memory()
Innmind\BlackBox\Set\Slice
Innmind\BlackBox\Set\MutuallyExclusive
Innmind\BlackBox\Tag::ci
Innmind\BlackBox\Tag::local
Fixed
- The message
Failing scenarii:
was always printed in PHPUnit output even when there was no failures
5.2.0
Added
Innmind\BlackBox\PHPUnit\Compatibility::asDataProvider()
Innmind\BlackBox\Application::disableGlobalFunctions()
Innmind\BlackBox\Runner\proof
functionInnmind\BlackBox\Runner\test
functionInnmind\BlackBox\Runner\given
functionInnmind\BlackBox\Runner\property
functionInnmind\BlackBox\Runner\properties
function- PHPUnit extension now prints the generated data that resulted in an error
Changed
Innmind\BlackBox\PHPUnit\BlackBox::forAll()
is now astatic
method
5.1.2
5.1.1
5.1.0
5.0.0
Added
Innmind\BlackBox\Set\Nullable
Innmind\BlackBox\Set::map()
Innmind\BlackBox\PHPUnit\Extension
Innmind\BlackBox\Application
Innmind\BlackBox\Tag
Innmind\BlackBox\Runner\Load
Innmind\BlackBox\Runner\CodeCoverage
Innmind\BlackBox\Runner\Assert
Innmind\BlackBox\Runner\Printer
Innmind\BlackBox\Runner\IO
Innmind\BlackBox\Property::any()
Changed
- All
Set
s constructor are now private - PHP
8.2
is now required Innmind\BlackBox\Set\AnyType
has been renamed toInnmind\BlackBox\Set\Type
Innmind\BlackBox\Random
is now an enum- Requires
PHPUnit
10
Innmind\BlackBox\Properties
constructor is now private, use::of()
named constructor insteadInnmind\BlackBox\Properties::ensureHeldBy
now expectsInnmind\BlackBox\Runner\Assert
as a first argumentInnmind\BlackBox\Properties
is now longer compatible with third party test runnersInnmind\BlackBox\Property::ensureHeldBy
now expectsInnmind\BlackBox\Runner\Assert
as a first argumentInnmind\BlackBox\Property
is now longer compatible with third party test runnersInnmind\BlackBox\Set::take()
and::filter()
now explicitly state that they are mutation freeInnmind\BlackBox\Set::take()
now requires apositive-int
as argumentInnmind\BlackBox\Set\Chars
now longer implements theSet
interface, useChars::any()
insteadInnmind\BlackBox\Set\IntegersExceptZero
now longer implements theSet
interface, useIntegersExceptZero::any()
insteadInnmind\BlackBox\Set\NaturalNumbers
now longer implements theSet
interface, useNaturalNumbers::any()
insteadInnmind\BlackBox\Set\NaturalNumbersExceptZero
now longer implements theSet
interface, useNaturalNumbersExceptZero::any()
insteadInnmind\BlackBox\Set\Sequence::of()
now longer accept the range of values as 2nd argument, useSequence::of()->atLeast()
,Sequence::of()->atMost()
andSequence::of()->between()
insteadInnmind\BlackBox\Set\Strings
now longer implements theSet
interface, useStrings::any()
insteadInnmind\BlackBox\Set\Strings::any()
now longer accept the maximum length, useStrings::atMost()
instead
Fixed
- Avoid trying to generate from a
Set
inSet\Either
that can't generate data
Removed
seeder
method provided byInnmind\BlackBox\PHPUnit\Blackbox
trait- Support for PHPUnit
8
and9
(custom printers are now longer available) - Support for Symfony
4
and5
Innmind\BlackBox\Set\Regex
Innmind\BlackBox\Set\Strings::matching()
Innmind\BlackBox\Random\RandomInt
Innmind\BlackBox\Random\MtRand
Innmind\BlackBox\Property::name()
Innmind\BlackBox\PHPUnit\BlackBox::seeder()
Innmind\BlackBox\PHPUnit\Seeder
Innmind\BlackBox\Set\Properties::chooseFrom()
, useProperties::any()->between()
orProperties::any()->atMost()
insteadInnmind\BlackBox\Set\Property
Innmind\BlackBox\Set\Unicode::lengthBetween()
, useUnicode::any()->between()
instead