Skip to content

Releases: phpspec/prophecy

1.12.0

28 Sep 12:26
Compare
Choose a tag to compare

1.11.1

08 Jul 12:44
b20034b
Compare
Choose a tag to compare
  • [fixed] can't double objects with self type hints (@greg0ire)
  • [fixed] cloned doubes were not loosely comparable (@tkulka)

1.11.0

07 Jul 17:40
Compare
Choose a tag to compare
  • [changed] dropped support for PHP versions earlier than 7.2 (@ciaranmcnulty)
  • [fixed] removed use of Reflection APIs deprecated in PHP 8.0 (@Ayesh)

1.10.3

05 Mar 16:10
v1.10.3
Compare
Choose a tag to compare

[fixed] removed fatal error when phpdocumentor/reflection-docblock 5 parses an invalid @method tag (@stof)

v1.10.2

20 Jan 15:57
b4400ef
Compare
Choose a tag to compare

[added] support for new versions of (@sebastianbergmann)

1.10.1

22 Dec 21:19
Compare
Choose a tag to compare
  • [fixed] identical callables no longer match as arguments (@ciaranmcnulty)

1.10.0

17 Dec 16:58
Compare
Choose a tag to compare
  • [added] shouldHaveBeenCalled evaluation happens later so un-stubbed calls don't throw (@elvetemedve)
  • [added] methods can now be doubled case-insensitively to match PHP semantics (@michalbundyra)
  • [fixed] reduced memory usage by optimising CachedDoubler (@DonCallisto)
  • [fixed] removed fatal error nesting level when comparing large objects (@scroach)

1.9.0

03 Oct 11:08
f6811d9
Compare
Choose a tag to compare
  • [added] Add willYield feature to Method Prophecy(@tkotosz)
  • [fixed] Allow MethodProphecy::willThrow() to accept Throwable as string (@timoschinkel )
  • [fixed] Allow new version of phpdocumentor/reflection-docblock (@ricpelo)

1.8.1

13 Jun 12:51
1927e75
Compare
Choose a tag to compare
  • [fixed] Don't try to patch final constructors (@nir)

1.8.0

05 Aug 17:59
Compare
Choose a tag to compare
  • Support for void return types without explicit will (@crellbar)
  • Clearer error message for unexpected method calls (@meridius)
  • Clearer error message for aggregate exceptions (@meridius)
  • More verbose shouldBeCalledOnce expectation (@olvlvl)
  • Ability to double Throwable, or methods that extend it (@ciaranmcnulty)
  • [fixed] Doubling methods where class has additional arguments to interface (@webimpress)
  • [fixed] Doubling methods where arguments are nullable but default is not null (@webimpress)
  • [fixed] Doubling magic methods on parent class (@dsnopek)
  • [fixed] Check method predictions only once (@dontub)
  • [fixed] Argument::containingString throwing error when called with non-string (@dcabrejas)