您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ExampleTest.php 596B

9 个月前
9 个月前
12345678910111213141516171819202122232425
  1. <?php
  2. namespace tests\codeception\common\unit;
  3. //use \Tests\Support\UnitTester;
  4. use domain\Producer\Producer\Producer;
  5. use domain\Producer\Producer\ProducerModule;
  6. use tests\codeception\common\UnitTester;
  7. class ExampleTest extends \Codeception\Test\Unit
  8. {
  9. protected UnitTester $tester;
  10. protected function _before()
  11. {
  12. }
  13. public function testMe()
  14. {
  15. $producerModule = ProducerModule::getInstance();
  16. $producer = $producerModule->getBuilder()->instanciateProducer();
  17. $this->assertTrue($producer instanceof Producer, 'Producer instancié');
  18. }
  19. }