Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created July 9, 2020 20:05
Show Gist options
  • Select an option

  • Save minthemiddle/6e2bb99c4ad44293d429d3d4ba5048b0 to your computer and use it in GitHub Desktop.

Select an option

Save minthemiddle/6e2bb99c4ad44293d429d3d4ba5048b0 to your computer and use it in GitHub Desktop.
Markdium-Lessons Learnt: Confident Laravel
public function testSpying()
{
$spy = Mockery::spy();
$this->assertNull($spy->quix());
// assert behavior
$spy->shouldHaveReceived('quix')->once();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment