Skip to content

Releases: mockery/mockery

1.3.3

11 Aug 18:12
60fa2f6
Compare
Choose a tag to compare
  • Fix array to string conversion in ConstantsPass (#1086)
  • Fixed nullable PHP 8.0 union types (#1088)
  • Fixed support for PHP 8.0 parent type (#1088)
  • Fixed PHP 8.0 mixed type support (#1088)
  • Fixed PHP 8.0 union return types (#1088)

Thanks again to @GrahamCampbell

1.4.1

09 Jul 08:32
1404386
Compare
Choose a tag to compare
  • Allow quick definitions to use 'at least once' expectation
    \Mockery::getConfiguration()->getQuickDefinitions()->shouldBeCalledAtLeastOnce(true) (#1056)
  • Added provisional support for PHP 8.0 (#1068, #1072,#1079)
  • Fix mocking methods with iterable return type without specifying a return value (#1075)

1.3.2

09 Jul 08:24
9b6f117
Compare
Choose a tag to compare
  • Fix mocking with anonymous classes (#1039)
  • Fix andAnyOthers() to properly match earlier expectations (#1051)
  • Added provisional support for PHP 8.0 (#1068, #1072,#1079)
  • Fix mocking methods with iterable return type without specifying a return value (#1075)

1.4.0

19 May 14:31
Compare
Choose a tag to compare
  • Fix andAnyOthers() to properly match earlier expectations (#1051)
  • Drops support for PHP < 7.3 and PHPUnit < 8 (#1059)

1.3.1: Merge pull request #1032 from robertbasic/revert-exception-debugging

26 Dec 09:50
f69bbde
Compare
Choose a tag to compare
  • Revert improved exception debugging due to BC breaks (#1032)

1.3.0

24 Nov 07:56
Compare
Choose a tag to compare
  • Added capture Mockery::capture convenience matcher (#1020)
  • Added andReturnArg to echo back an argument passed to a an expectation (#992)
  • Improved exception debugging (#1000)
  • Fixed andSet to not reuse properties between mock objects (#1012)

1.2.4

30 Sep 08:31
Compare
Choose a tag to compare

Fix a bug introduced with previous release, for empty method definition lists (#1009)

1.2.3

07 Aug 15:01
Compare
Choose a tag to compare
  • Allow mocking classes that have allows and expects methods (#868)
  • Allow passing thru __call method in all mock types (experimental) (#969)
  • Add support for ! to blacklist methods (#959)
  • Added withSomeOfArgs to partial match a list of args (#967)
  • Fix chained demeter calls with type hint (#956)

1.2.2

13 Feb 09:38
Compare
Choose a tag to compare

Fix a BC breaking change for PHP 5.6/PHPUnit 5.7.27 (#947)

0.9.11

12 Feb 16:08
Compare
Choose a tag to compare
  • Set property values on all related mocks #944