Skip to content

Commit

Permalink
Returning $this and adding annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshforbes committed Apr 16, 2016
1 parent b2ed434 commit 49ddac6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ protected function wasDispatched($needle, array $haystack)
* These observers will be mocked, so that they will not actually be executed.
*
* @param array|string $observers
* @return $this
*/
public function withoutObservers($observers)
{
Expand All @@ -236,5 +237,7 @@ public function withoutObservers($observers)
return $this->getMockBuilder($observer)->disableOriginalConstructor()->getMock();
});
}, $observers);

return $this;
}
}

0 comments on commit 49ddac6

Please sign in to comment.