false types (#250).mixed types (#250).static return types (#250).parent types (#250).See the migration guide for detailed upgrade information.
setUseColor().handle->clazz() method was renamed to handle->class().See the migration guide for detailed upgrade information.
inOrderSequence, checkInOrderSequence,
anyOrderSequence, and checkAnyOrderSequence from the facade (#215).anInstanceOf() (#220).emptyValue() (#218).object typehint
(#224).var_dump() (#223).each() function.No code changes should be required, but in some cases, the Composer package name and version constraint will need to be updated:
eloquent/phony to
eloquent/phony-phpunit.eloquent/peridot-phony, change the Composer package to
eloquent/phony-peridot.eloquent/phony, no changes are required, but consider
trying eloquent/phony-peridot for the added auto-wired mock support. See
the eloquent/phony-peridot repository for more information.eloquent/phony to eloquent/phony-simpletest.eloquent/phony to eloquent/phony-pho.self return type (#208).$handle->mock() to $handle->get() (#180).verify() and verifyStatic() (#179).with(), and all call argument verification must now use calledWith()
(#179).calledOn() behavior (#160).$types
argument, hence the $definition argument has been removed from mock(),
partialMock(), and mockBuilder() (#117).mock(), partialMock(), and
mockBuilder() no longer accept the $className argument. Custom class names
can still be used via named() on mock builders (#117).mock(), partialMock(), and
mockBuilder() no longer accept reflection classes or mock builders in the
$types argument (#117).$useGeneratorSpies and $useTraversableSpies
argument from both spy() and stub() (#123).$self and $defaultAnswerCallback arguments from
stub() (#123).reset() with stopRecording() and
startRecording() (#99).clone operator (#101).proxy() on mock handles (#39).firstEvent() and lastEvent() (#97).firstCall() and lastCall() (#93).fullMock(), changed mock() to create full mocks,
and added partialMock() for creating partial mocks (#73).throws() (#76).eventAt() and callAt() for verification results
(#17).Call::argument() (#56).MockBuilder::source() for easier debugging (#45).anyOrder() (#60).inOrder()
(#52).produced(), producedAll(), received(),
receivedException() and associated check verification methods in both the
spy and call APIs. These methods are replaced by generator and traversable
verifiers (#125).setsArgument(), callsArgument(),
callsArgumentWith(), and returnsArgument() can now result in exceptions
when a specified argument is undefined at call time (#136).arguments() and argument() from all event
collections, in favor of using firstCall() et al. followed by the
corresponding method on the call API (#146).responded() and completed() verifications (#125).Traversable (#152).DateTimeInterface (#153).[@danepowell]: https://github.com/danepowell [@jmalloc]: https://github.com/jmalloc [@keksa]: https://github.com/keksa [@pmall]: https://github.com/pmall [@shadowhand]: https://github.com/shadowhand [@yanneg]: https://github.com/yanneg
How can I help you explore Laravel packages today?