CHANGELOG
develop branch
v1.2016082401
New
- Added support for Checks
- added
Check
interface - added
ListCheck
interface - added
BadCheck
exception - added
BadCheckArgs
exception - added
BadChecksList
exception - added
EmptyChecksList
exception - added
ComposableCheck
- added
IsAllOf
- added
IsAnyOneOf
- added
ListableCheck
- added
RequireValidChecks
- added
Fixes
- Stop reusing
BadXXX
exceptions when we're reporting problems with acallable
- added
BadCallable
exception ComposableAssurance
now throwsBadCallable
instead ofBadAssurance
ComposableRequirement
now throwsBadCallable
instead ofBadRequirement
- added
v1.2016081301
New
- Tweaks and changes to improve readabilty of your code
- added
Inspection::inspect()
as an alias forInspection::to()
- added
InvokeableAssurable::inspect()
- added
InvokeableRequirement::inspect()
- added
- Added support for applying assurances and requirements to all elements in a list
- added
ListInspection
interface - added
ListAssurance
interface - added
ListRequirement
interface - added
ListableAssurance
trait - added
ListableAssurance
trait ComposableAssurance
now implementsListAssurance
interfaceComposableRequirement
now implementsListRequirement
interfaceEnsureAllOf
now implementsListAssurance
interfaceEnsureAllOf
now accepts empty lists of assurancesEnsureAnyOneOf
now implementsListAssurance
interfaceEnsureAnyOneOf
now accepts empty lists of assurancesRequireAllOf
now implementsListRequirement
interfaceRequireAllOf
now accepts empty lists of requirementsRequireAnyOneOf
now implementsListRequirement
interfaceRequireAnyOneOf
now accepts empty lists of requirements
- added
- A couple of internal classes are now
ListRequirement
s onlyRequireValidAssurances
is now aListRequirement
RequireValidRequirements
is now aListRequirement
- Tweaks to improve usefulness of exceptions
BadAssurance
exception message now includes the type of the bad assuranceBadRequirement
exception message now includes the type of the bad requirement
v1.2016062801
New
- Added support for assurances: checks on return values and generated data values
- added
BadAssurance
exception - added
BadAssuranceArgs
exception - added
BadAssurancesList
exception - added
EmptyAssurancesList
exception - updated
DefensiveExceptions
with the new exception factories - added
Assurance
interface - added
Inspection
interface Requirement
is now anInspection
- added
RequireValidAssurances
- added
ComposableAssurance
- added
InvokeableAssurance
- added
EnsureAllOf
- added
EnsureAnyOneOf
- added
v1.2016061901
Refactor
- Update everything to be compatible with the latest Exception Helpers library.
- Update every class
- Added
EmptyRequirementsList
exception
v1.2016060601
Released Mon 6th June 2016.
Fixes
- Support overriding default exceptions factory list
- Updated
RequireAllOf
- Updated
RequireAnyOneOf
- Updated
v1.2016060501
Released Sun 5th June 2016.
Fixes
- Updated to support removal of
FilterCodeCaller::$DEFAULT_PARTIALS
fromganbarodigital/php-mv-exception-helpers
v1.2016052101
Released Sat 21st May 2016.
- initial release
- feature release
New
- Added a way to catch all exceptions thrown by this library
- Added
DefensiveException
interface
- Added
- Added generic exceptions that this library will want to throw
- Added
UnsupportedType
exception - Added
UnsupportedValue
exception
- Added
- Added a way to apply a list of requirements to a piece of data
- Added
Requirement
interface - Added
InvokeableRequirement
convenience trait - Added
RequireAllOf
customisable function object - Added
RequireAnyOneOf
customisable function object - Added
RequireValidRequirements
customisable function object - Added
BadRequirement
exception - Added
BadRequirements
exception - Added
BadRequirementArgs
exception
- Added
- Added a way to make any
callable
into aRequirement
- Added
ComposableRequirement
customisable function object
- Added
- Added a factory container for this library's methods
- Added
DefensiveExceptions
DI container
- Added
- Added support for catching impossible logic errors
- Added
UnreachableCodeExecuted
exception
- Added