public youCanMakeErrorResponsesUsingHelperMethod ( ) |
public function youCanMakeErrorResponsesUsingHelperMethod()
{
// Arrange...
$responder = $this->mockResponder();
// Expect...
$responder->shouldReceive('error')->with('test_error', 400, 'Test error.')->once();
// Act...
responder()->error('test_error', 400, 'Test error.');
}