Added
- Support unit instances with mocks
We can now mock unit instances that are written with the new PHP syntax the same as we did with the previous class string syntax:
$repo = $this->run(new GetGitHubRepoJob(id: $repoId, withReleases: false));
GetGitHubRepoJob::mock([
'id' => 'some-id-here',
'withReleases' => false,
])->shouldReturn($sampleRepo);