Skip to content

Releases: phpspec/prophecy

1.10.1

22 Dec 21:19

Choose a tag to compare

  • [fixed] identical callables no longer match as arguments (@ciaranmcnulty)

1.10.0

17 Dec 16:58

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

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

Choose a tag to compare

  • [fixed] Don't try to patch final constructors (@nir)

1.8.0

05 Aug 17:59

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)

1.7.6

18 Apr 13:58
33a7e3c

Choose a tag to compare

1.7.5

19 Feb 10:20
dfd6be4

Choose a tag to compare

  • Support for object return type hints (thanks @greg0ire)

1.7.4

11 Feb 18:58
9f901e2

Choose a tag to compare

1.7.3

24 Nov 16:03
e4ed002

Choose a tag to compare

  • Fix SplInfo ClassPatch to work with Symfony 4 (Thanks @gnugat)

1.7.2

05 Sep 15:35
c9b8c60

Choose a tag to compare

  • Reverted "check method predictions only once" due to it breaking Spies