laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

$this->expectsEvents passes every test, even on an invalid namespace. #957

Closed toksdotdev closed 5 years ago

toksdotdev commented 5 years ago

Description:

I discovered that $this->expectsEvents passes, even when an incorrect event namespace is passed in.

Steps To Reproduce:

Call :

All the above cases pass successfully, which shouldn't be so since no event with the above name is fired.

I don't know if I'm the only one experiencing this.

driesvints commented 5 years ago

Please see my answer here: https://github.com/laravel/lumen-framework/issues/956#issuecomment-519546715