Skip to content

Commit

Permalink
Merge pull request #3 from MarkVaughn/patch-1
Browse files Browse the repository at this point in the history
Allow overriding specific mocked dependencies
  • Loading branch information
5outh committed Dec 18, 2015
2 parents 4afafc5 + bd68ca3 commit 5699e42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SellerLabs/Injected/InjectedTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ protected function getDependencies()
/**
* Make an instance of $this->className
*
* @param array $parameters
*
* @return mixed
*
* @throws Exception
*/
protected function make()
protected function make(array $parameters = [])
{
$dependencies = $this->mockDependencies();
$dependencies = array_merge($dependencies, $parameters);

// Note: Must be defined in trait-using class
$className = $this->className;
Expand Down

0 comments on commit 5699e42

Please sign in to comment.