Skip to content

Instantly share code, notes, and snippets.

@eriktorsner
Last active April 25, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eriktorsner/07d6a65557cfc6ac647a70cf918bca86 to your computer and use it in GitHub Desktop.
Save eriktorsner/07d6a65557cfc6ac647a70cf918bca86 to your computer and use it in GitHub Desktop.
Snippet from RuntimeProviderTest.php
<?php
public function testRegister()
{
$container = new Pimple\Container();
$provider = new RuntimeProvider();
$provider->register($container);
$this->assertInstanceOf('helloTestable\Lyrics', $container['lyrics']);
$this->assertInstanceOf('helloTestable\helloTestable', $container['helloTestable']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment