shouldHaveReceived() public method

public shouldHaveReceived ( $method, $args = null )
 /**
  * @test
  */
 public function itShouldPublishTheEvent()
 {
     $this->eventPublishingListener->handle($this->message);
     $this->emitter->shouldHaveReceived('emit')->with($this->event);
 }
Ejemplo n.º 2
0
 /**
  * @return M\Expectation
  */
 public function shouldHaveBeenCalled()
 {
     return $this->mock->shouldHaveReceived(self::SPY_METHOD);
 }
 private function assertUserHasBeenPersisted()
 {
     $this->userRepository->shouldHaveReceived('save')->with($this->user)->once();
 }