packagist phpspec/prophecy v1.1.0
Improvements and bugfixes

latest releases: dev-master, dev-stof-ci-jobs, v1.19.0...
10 years ago
  • Changed the generated class names to use a static counter instead of a random number
  • Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein)
  • Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein)
  • Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty)
  • Added support for properties in ObjectStateToken (thanks @adrienbrault)
  • Added support for mocking classes with a final constructor (thanks @ciaranmcnulty)
  • Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault)
  • Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein)
  • Added StringContainToken and Argument::containingString() (thanks @peterjmit)
  • Added shouldNotHaveBeenCalled on the MethodProphecy (thanks @ciaranmcnulty)
  • Fixed the comparison of objects in ExactValuetoken (thanks @sstok)
  • Deprecated shouldNotBeenCalled in favor of shouldNotHaveBeenCalled

Don't miss a new prophecy release

NewReleases is sending notifications on new releases.