Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Improving assertProcessRun
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Mar 19, 2019
1 parent c751055 commit 5bbb1df
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
56 changes: 28 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ protected function assertProcessRun(array $command)
$mock->shouldAllowMockingProtectedMethods()
->shouldReceive('run')
->once()
->with(
$command,
\Mockery::any(),
\Mockery::any(),
\Mockery::any(),
\Mockery::any()
)
->withArgs(function($run) use ($command) {
$this->assertEquals($command, $run);

return true;
})
->andReturnNull();
})->makePartial();
}
Expand Down

0 comments on commit 5bbb1df

Please sign in to comment.