Skip to content

v1.1.0

Choose a tag to compare

@paulbalandan paulbalandan released this 11 May 08:57
· 29 commits to 1.x since this release
Immutable release. Only release title and notes can be modified.
v1.1.0
362d881

Added

  • keys() and values() iterating expectations to apply assertions across an iterable's keys or values
  • isBetween(float|int $min, float|int $max, bool $inclusive = true) expectation for numeric range checks
  • isOneOf(non-empty-list<mixed> $choices) expectation, with PHPStan narrowing to the union of literal allowed values when the list is constant
  • hasMinLength(int<1, max> $min) and hasMaxLength(int<1, max> $max) expectations for bounded-string checks
  • isUrl() expectation, backed by filter_var($value, FILTER_VALIDATE_URL)

Fixed

  • Improved failure-message wording for iterating expectations (keys(), values()) to clearly indicate which key or value triggered the failure

Full Changelog: v1.0.0...v1.1.0