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

Feature/Question: Mock Interceptors #79

Open
4n70w4 opened this issue Aug 5, 2020 · 0 comments
Open

Feature/Question: Mock Interceptors #79

4n70w4 opened this issue Aug 5, 2020 · 0 comments

Comments

@4n70w4
Copy link
Contributor

4n70w4 commented Aug 5, 2020

Hi! I want to check interceptors calls in unit test.

Test fragment:

$interceptor = \Mockery::mock(LogExceptionsInterceptor::class);
$this->instance(LogExceptionsInterceptor::class, $interceptor);

In configure of LogExceptionsPointCut I replace:

$interceptor = new LogExceptionsInterceptor;

to

$interceptor = $app[LogExceptionsInterceptor::class];

But currently calls PointCut's configure before run tests and can't rebind to mock.

Any ideas on how to test it?

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