Skip to content

Releases: phpspec/prophecy

1.24.0

21 Nov 13:12
v1.24.0

Choose a tag to compare

Added:

1.23.1

27 Oct 22:46
v1.23.1

Choose a tag to compare

Changed:

  • Refactor the ProphecyComparator to use composition instead of extending internal comparator classes (@stof)

Full Changelog: v1.23.0...v1.23.1

1.23.0

08 Oct 08:54
v1.23.0

Choose a tag to compare

Removed:

  • Remove support for PHP lower than 8.2 (@Nek-)

Added:

  • Add support for doubling classes using intersection types and DNF types (@Nek-)

Fixed:

  • Fix deprecation for SplObjectStorage changes in PHP 8.5 (@Nek-)

Changed:

  • Improve error message for unsupported default return values (@stof)

v1.22.0

29 Apr 14:59
35f1adb

Choose a tag to compare

1.22.0

Removed:

  • Support for PHP 7.2 and 7.3 (@Jean85)

v1.21.0

29 Apr 11:15
7594ec2

Choose a tag to compare

Added:

Add support for PHPUnit 12 (@Jean85)

1.20.0

19 Nov 13:13
v1.20.0

Choose a tag to compare

Added:

Fixed:

  • Fix support for doubling methods using an enum case as default value of a parameter (@jdreesen)
  • Fix deprecation when doubling a class with constructor parameters (@singinwhale, @W0rma)
  • Fix deprecation warning when using phpdocumentor/reflection-docblock 5.4+ (@jrfnl)

1.19.0

29 Feb 11:54
v1.19.0

Choose a tag to compare

Added:

  • Allow sebastian/comparator and sebastian/recursion-context 6 by @Jean85

Full Changelog: v1.18.0...v1.19.0

1.18.0

07 Dec 16:25
v1.18.0

Choose a tag to compare

  • [added] Add support for PHP 8.3 [@rajeshreeputra]
  • [changed] Improve the error when using return types that Prophecy does not support for mocking [@stof]
  • [changed] Add more precise type for static analysis [@stof]
  • [fixed] Error when comparing object arguments with integers [@lucassabreu]
  • [changed] Add PHP 8.2 to test matrix [@Jean85]
  • [Added] Allow sebastian/comparator and sebastian/recursion-context 5, and phpunit/phpunit 10 [@Jean85]
  • [docs] Switch travis status badge to GHA one [@michalbundyra]

1.17.0

02 Feb 15:42
v1.17.0

Choose a tag to compare

  • [added] Add generic types for ProphecyInterface and ObjectProphecy [@stof]
  • [added] Add the conditional return type for ObjectProphecy::getMethodProphecies [@stof]
  • [added] Add support for doctrine/instantiator 2.0 [@stof]
  • [added] Add the ability to customize the __toString representation of a CallbackToken [@ian-zunderdorp]
  • [changed] Remove support for instantiating a MethodProphecy without its arguments [@stof]
  • [deprecated] Deprecate \Prophecy\Comparator\Factory as sebastian/comparator v5 makes it parent class final [@stof]

1.16.0

29 Nov 15:07

Choose a tag to compare

  • [added] Allow install with PHP 8.2 [@gquemener]
  • [added] Use shorter object IDs for object comparison [@TysonAndre]
  • [added] Support standalone false,true and null types [@kschatzle]
  • [added] Support doubling readonly classes [@gquemener]
  • [fixed] Remove workarounds for unsupported HHVM [@TysonAndre]
  • [fixed] Clear error message when doubling DNF types [@kschatzle]