Skip to content

Instantly share code, notes, and snippets.

@frastel
Created November 26, 2012 16:28
Show Gist options
  • Save frastel/4149155 to your computer and use it in GitHub Desktop.
Save frastel/4149155 to your computer and use it in GitHub Desktop.
Don't pull your dependencies 3
public function testDoSomething()
{
$logger = $this->getMockBuilder('Symfony\\Bridge\\Monolog\\Logger')
->disableOriginalConstructor()
->getMock();
$container = new Container();
$container->set('logger', $logger);
$puller = new DependencyPuller($container);
$result = $puller->doSomething();
$this->assertTrue($result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment