Skip to content

Instantly share code, notes, and snippets.

@urukalo
Created May 3, 2017 15:17
Show Gist options
  • Save urukalo/ee885be50e7215cfdd22942c36b5042b to your computer and use it in GitHub Desktop.
Save urukalo/ee885be50e7215cfdd22942c36b5042b to your computer and use it in GitHub Desktop.
<?php
$externalMock = Mockery::mock('overload:App\MyClass');
$externalMock->shouldReceive('MyMethod')
->once()
->with($param)
->andReturn('Tested!');
@urukalo
Copy link
Author

urukalo commented May 3, 2017

/**
 * @runTestsInSeparateProcesses
 * @preserveGlobalState disabled
 */

annotations to run this test separately because MyClass cant be loaded before overload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment