Closed toksdotdev closed 5 years ago
I discovered that $this->expectsEvents passes, even when an incorrect event namespace is passed in.
$this->expectsEvents
Call :
$this->expectsEvents(5);
$this->expectsEvents('\App\DoesntExist');
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.
Please see my answer here: https://github.com/laravel/lumen-framework/issues/956#issuecomment-519546715
Description:
I discovered that
$this->expectsEvents
passes, even when an incorrect event namespace is passed in.Steps To Reproduce:
Call :
$this->expectsEvents(5);
, or$this->expectsEvents('\App\DoesntExist');
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.