CHANGELOG
develop branch
v1.2016082401
New
- Added support for Checks
- added
Checkinterface - added
ListCheckinterface - added
BadCheckexception - added
BadCheckArgsexception - added
BadChecksListexception - added
EmptyChecksListexception - added
ComposableCheck - added
IsAllOf - added
IsAnyOneOf - added
ListableCheck - added
RequireValidChecks
- added
Fixes
- Stop reusing
BadXXXexceptions when we're reporting problems with acallable- added
BadCallableexception ComposableAssurancenow throwsBadCallableinstead ofBadAssuranceComposableRequirementnow throwsBadCallableinstead 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
ListInspectioninterface - added
ListAssuranceinterface - added
ListRequirementinterface - added
ListableAssurancetrait - added
ListableAssurancetrait ComposableAssurancenow implementsListAssuranceinterfaceComposableRequirementnow implementsListRequirementinterfaceEnsureAllOfnow implementsListAssuranceinterfaceEnsureAllOfnow accepts empty lists of assurancesEnsureAnyOneOfnow implementsListAssuranceinterfaceEnsureAnyOneOfnow accepts empty lists of assurancesRequireAllOfnow implementsListRequirementinterfaceRequireAllOfnow accepts empty lists of requirementsRequireAnyOneOfnow implementsListRequirementinterfaceRequireAnyOneOfnow accepts empty lists of requirements
- added
- A couple of internal classes are now
ListRequirements onlyRequireValidAssurancesis now aListRequirementRequireValidRequirementsis now aListRequirement
- Tweaks to improve usefulness of exceptions
BadAssuranceexception message now includes the type of the bad assuranceBadRequirementexception 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
BadAssuranceexception - added
BadAssuranceArgsexception - added
BadAssurancesListexception - added
EmptyAssurancesListexception - updated
DefensiveExceptionswith the new exception factories - added
Assuranceinterface - added
Inspectioninterface Requirementis 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
EmptyRequirementsListexception
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_PARTIALSfromganbarodigital/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
DefensiveExceptioninterface
- Added
- Added generic exceptions that this library will want to throw
- Added
UnsupportedTypeexception - Added
UnsupportedValueexception
- Added
- Added a way to apply a list of requirements to a piece of data
- Added
Requirementinterface - Added
InvokeableRequirementconvenience trait - Added
RequireAllOfcustomisable function object - Added
RequireAnyOneOfcustomisable function object - Added
RequireValidRequirementscustomisable function object - Added
BadRequirementexception - Added
BadRequirementsexception - Added
BadRequirementArgsexception
- Added
- Added a way to make any
callableinto aRequirement- Added
ComposableRequirementcustomisable function object
- Added
- Added a factory container for this library's methods
- Added
DefensiveExceptionsDI container
- Added
- Added support for catching impossible logic errors
- Added
UnreachableCodeExecutedexception
- Added