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

ExampleTest.php 572B

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