/** * Test that you can access the responder service from the Laravel's IoC container. * * @test */ public function youCanAccessThroughFacade() { // Arrange... $fruit = $this->createModel(); $responder = $this->mockResponder(); // Act... ResponderFacade::success($fruit, 200); // Assert... $responder->shouldHaveReceived('success')->with($fruit, 200); }