Skip to content

Releases: phpspec/prophecy

1.7.1

03 Sep 09:40
15ea9ac

Choose a tag to compare

  • Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
  • Allow reflection-docblock v4 (thanks @GrahamCampbell)
  • Check method predictions only once (thanks @dontub)
  • Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)

1.7.0

02 Mar 20:06

Choose a tag to compare

1.6.2

21 Nov 14:59

Choose a tag to compare

  • Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek)
  • Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
  • Added testing on PHP 7.1 on Travis (thanks @danizord)
  • Fixed the usage of the phpunit comparator (thanks @Anyqax)

v1.6.1

07 Jun 08:16

Choose a tag to compare

  • Ignored empty method names in invalid @method phpdoc
  • Fixed the mocking of SplFileObject
  • Added compatibility with phpdocumentor/reflection-docblock 3

v1.6.0

15 Feb 07:46

Choose a tag to compare

  • Add Variadics support (thanks @pamil)
  • Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
  • Add ApproximateValueToken (thanks @dantleech)
  • Add support for 'self' and 'parent' return type (thanks @bendavies)
  • Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
  • Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
  • Specify the required php version for composer (thanks @jakzal)
  • Exclude 'args' in the generated backtrace (thanks @oradwell)
  • Fix code generation for scalar parameters (thanks @trowski)
  • Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
  • Fix phpdoc for magic methods (thanks @Tobion)
  • Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
  • Prevent final methods from being manually extended (thanks @kamioftea)
  • Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)

v1.5.0 (PHP7 support)

13 Aug 10:08

Choose a tag to compare

  • Add support for PHP7 scalar type hints (thanks @trowski)
  • Add support for PHP7 return types (thanks @trowski)
  • Update internal test suite to support PHP7

v1.4.1

27 Apr 22:15

Choose a tag to compare

  • Fixed bug in closure-based argument tokens (#181)

v1.4.0

27 Mar 19:31

Choose a tag to compare

  • Fixed errors in return type phpdocs (thanks @sobit)
  • Fixed stringifying of hash containing one value (thanks @avant1)
  • Improved clarity of method call expectation exception (thanks @dantleech)
  • Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
  • Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty)
  • Support for mocking classes with methods that return references (thanks @edsonmedina)
  • Improved object comparison (thanks @whatthejeff)
  • Adopted '^' in composer dependencies (thanks @GrahamCampbell)
  • Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff)
  • Magic methods are now filtered for keywords (thanks @seagoj)
  • More readable errors for failure when expecting single calls (thanks @dantleech)

Spies fix

24 Jan 11:04

Choose a tag to compare

  • Spy automatically promotes spied method call to an expected one

HHVM compatibility

15 Jan 15:07

Choose a tag to compare

  • Added support for HHVM