reecem/mocker
A lightweight Laravel-friendly mocking helper for PHP tests. Quickly define and swap mocks, set expectations, and control return values to simplify unit and feature testing. Designed to reduce boilerplate and keep test setup clean and readable.
Full Changelog: https://github.com/ReeceM/mocker/compare/v1.2.0...v1.2.1
Variables are no longer polluted between variable calls. #6
When calling an object that has an array assigned it will return whole the array as a string, see for more #5
See pull request #15
There is a slight bug introduced with this version as to the fact that the arrays returned after the first step are arrays and not instances of Mocked. Cannot assign values after assigning the first time.
Feature
Add support for laravel 7.0 See merge #13, @blakehooks
Update requirements to support Laravel 6
Update tests to use latest methods for phpunit
Adds array functionality to mocked objects see PR #4
$mocked->obj['assoc']['array']->callsThis release adds a more readable output to the __toString() magic method, this is from #1 feature request.
This came in by means of PR #2
{{ $mocked->value->name }} == mocked->value->name
mocked->value->name => ["value set"]__get()Provides backwards compatibility with Laravel projects ^5.6 for the illuminate/support and illuminate/filesystem packages
fix the psr-4 namespacing issue cause special
The initial release of the mocking package
This only does the base thing of getting the params from the __constructor() method in a php class passed to it
How can I help you explore Laravel packages today?