Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifyInvokedMultipleTimes and ArgumentFormatter formats an object in an array with __set_state #174

Open
AndySox opened this issue Sep 6, 2019 · 0 comments

Comments

@AndySox
Copy link

AndySox commented Sep 6, 2019

Hi,

Im having an issue where im checking if a function is being call with the correct params, but one of my params is an array with objects in it. the what the ArgumentFormatter handles arrays is but calling var_export but this changes the objects/classes into the __set_state resulting the verify to fail

My current version of aspect mock:

name     : codeception/aspect-mock
descrip. : Experimental Mocking Framework powered by Aspects
keywords :
versions : * 3.0.2
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source   : [git] https://github.com/Codeception/AspectMock.git 130afd10a3d8131d267f393ee1ec322e3e583d67
dist     : [zip] https://api.github.com/repos/Codeception/AspectMock/zipball/130afd10a3d8131d267f393ee1ec322e3e583d67 130afd10a3d8131d267f393ee1ec322e3e583d67
path     : /var/www/html/billing/vendor/codeception/aspect-mock
names    : codeception/aspect-mock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant