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

Mock constant #511

Closed
Hywan opened this issue Oct 14, 2015 · 1 comment
Closed

Mock constant #511

Hywan opened this issue Oct 14, 2015 · 1 comment
Assignees
Labels

Comments

@Hywan
Copy link
Member

Hywan commented Oct 14, 2015

Hello :-),

We have $this->function->$functionName = function () { … } to mock a function easily. Is it possible to use the same mechanism to mock a constant? I tried $this->constant->$constantName without no success. Do you have any clue?

Thanks!

cc @mageekguy, @jubianchi

@Hywan
Copy link
Member Author

Hywan commented Nov 10, 2015

A first implementation is going to land in Hoa\Test (hoaproject/Test#52). If it succeeds, I will backport it to atoum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant