BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
1.7.2 / 2017-10-04
  • Reverted "check method predictions only once" due to it breaking Spies

1.7.1 / 2017-10-03

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

1.7.0 / 2017-03-02

  • Add full PHP 7.1 Support (thanks )
  • Allow sebastian/comparator ^2.0 (thanks )
  • Allow sebastian/recursion-context ^3.0 (thanks )
  • Allow \Error instances in ThrowPromise (thanks )
  • Support phpspec/phpspect ^3.2 (thanks -Burns)
  • Fix failing builds (thanks -Burns)

1.6.2 / 2016-11-21

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

1.6.1 / 2016-06-07

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

1.6.0 / 2016-02-15

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

1.5.0 / 2015-04-27

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

1.4.1 / 2015-04-27

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

1.4.0 / 2015-03-27

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

1.3.1 / 2014-11-17

  • Fix the edge case when failed predictions weren't recorded for getCheckedPredictions()

1.3.0 / 2014-11-14

  • Add a way to get checked predictions with MethodProphecy::getCheckedPredictions()
  • Fix HHVM compatibility
  • Remove dead code (thanks )
  • Add support for DirectoryIterators (thanks )

1.2.0 / 2014-07-18

  • Added support for doubling magic methods documented in the class phpdoc (thanks )
  • Fixed a segfault appearing in some cases (thanks )
  • Fixed the doubling of methods with typehints on non-existent classes (thanks )
  • Added support for internal classes using keywords as method names (thanks )
  • Added IdenticalValueToken and Argument::is (thanks )
  • Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks )

1.1.2 / 2014-01-24

  • Spy automatically promotes spied method call to an expected one

1.1.1 / 2014-01-15

  • Added support for HHVM

1.1.0 / 2014-01-01

  • 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 )
  • Fixed mirroring of classes with typehints on non-existent classes (thanks )
  • Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks )
  • Added support for properties in ObjectStateToken (thanks )
  • Added support for mocking classes with a final constructor (thanks )
  • Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks )
  • Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks )
  • Added StringContainToken and Argument::containingString() (thanks )
  • Added shouldNotHaveBeenCalled on the MethodProphecy (thanks )
  • Fixed the comparison of objects in ExactValuetoken (thanks )
  • Deprecated shouldNotBeenCalled in favor of shouldNotHaveBeenCalled

1.0.4 / 2013-08-10

  • Better randomness for generated class names (thanks )
  • Add support for interfaces into TypeToken and Argument::type() (thanks )
  • Add support for old-style (method name === class name) constructors (thanks for report)

1.0.3 / 2013-07-04

  • Support callable typehints (thanks )
  • Do not attempt to autoload arrays when generating code (thanks )
  • New ArrayEntryToken (thanks )

1.0.2 / 2013-05-19

  • Logical AND token added (thanks )
  • Logical NOT token added (thanks )
  • Add support for setting custom constructor arguments
  • Properly stringify hashes
  • Record calls that throw exceptions
  • Migrate spec suite to PhpSpec 2.0

1.0.1 / 2013-04-30

  • Fix broken UnexpectedCallException message
  • Trim AggregateException message

1.0.0 / 2013-04-29

  • Improve exception messages

1.0.0-BETA2 / 2013-04-03

  • Add more debug information to CallTimes and Call prediction exception messages
  • Fix MethodNotFoundException wrong namespace (thanks )
  • Fix some typos in the exception messages (thanks )

1.0.0-BETA1 / 2013-03-25

  • Initial release