Created
February 3, 2015 09:23
-
-
Save mnapoli/5e1361846ff1e93f8a96 to your computer and use it in GitHub Desktop.
PHPUnit + PHP-DI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use ...; | |
class GeneratingArgumentsTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @var VariableArgumentCollectionFactory | |
* @Inject | |
*/ | |
private $variableArgumentCollectionFactory; | |
/** | |
* @var InlineArgumentCollectionPrinter | |
* @Inject | |
*/ | |
private $inlineArgumentCollectionPrinter; | |
protected function setUp() | |
{ | |
$container = ContainerBuilder::buildDevContainer(); | |
$container->injectOn($this); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment