|
|
|
|
|
|
|
|
//use \Tests\Support\UnitTester; |
|
|
//use \Tests\Support\UnitTester; |
|
|
|
|
|
|
|
|
use domain\Producer\Producer\Producer; |
|
|
use domain\Producer\Producer\Producer; |
|
|
|
|
|
use domain\Producer\Producer\ProducerModule; |
|
|
use tests\codeception\common\UnitTester; |
|
|
use tests\codeception\common\UnitTester; |
|
|
|
|
|
|
|
|
class ExampleTest extends \Codeception\Test\Unit |
|
|
class ExampleTest extends \Codeception\Test\Unit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function testMe() |
|
|
public function testMe() |
|
|
{ |
|
|
{ |
|
|
$producerContainer = ProducerContainer::getInstance(); |
|
|
|
|
|
$producer = $producerContainer->getBuilder()->instanciateProducer(); |
|
|
|
|
|
|
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
|
|
|
$producer = $producerModule->getBuilder()->instanciateProducer(); |
|
|
$this->assertTrue($producer instanceof Producer, 'Producer instancié'); |
|
|
$this->assertTrue($producer instanceof Producer, 'Producer instancié'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |