当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseCase\Mockery类代码示例

本文整理汇总了PHP中Praxigento\Core\Test\BaseCase\Mockery的典型用法代码示例。如果您正苦于以下问题:PHP Mockery类的具体用法?PHP Mockery怎么用?PHP Mockery使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Mockery类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mFactoryTrans = $this->_mock(\Praxigento\Core\Transaction\Business\IFabrique::class);
     $this->obj = new Manager($this->mFactoryTrans);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:7,代码来源:Manager_Test.php

示例2: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mLogger = $this->_mockLogger();
     $this->mManObj = $this->_mockObjectManager();
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:7,代码来源:Call.php

示例3: setUp

 protected function setUp()
 {
     parent::setUp();
     $repoDownlineCustomer = ObjectManager::getInstance()->get(\Praxigento\Downline\Repo\Entity\ICustomer::class);
     /** create object to test */
     $this->obj = new Module($repoDownlineCustomer);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_pv,代码行数:7,代码来源:Module_Test.php

示例4: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mLogger = $this->_mockLogger();
     $this->obj = new Item($this->mLogger);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:7,代码来源:Item_Test.php

示例5: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManObj = $this->_mock(\Magento\Framework\ObjectManagerInterface::class);
     $this->obj = new Factory($this->mManObj);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:7,代码来源:Factory_Test.php

示例6: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mTypeProcessor = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class);
     /** create object to test */
     $this->obj = new \Praxigento\Core\Reflection\Tool\Type($this->mTypeProcessor);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:8,代码来源:TypeTool_Test.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoWrhs = $this->_mock(\Praxigento\Warehouse\Repo\Entity\IWarehouse::class);
     /** create object to test */
     $this->obj = new Repo($this->mRepoWrhs);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_warehouse,代码行数:8,代码来源:Repo_Test.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mToolReferralCode = $this->_mock(\Praxigento\Downline\Tool\IReferral::class);
     /** create object to test */
     $this->obj = new FrontControllerPlugin($this->mToolReferralCode);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_downline,代码行数:8,代码来源:FrontControllerPlugin_Test.php

示例9: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mSubject = $this->_mock(\Magento\Catalog\Model\ResourceModel\Product\Collection::class);
     /** create object to test */
     $this->obj = new Collection();
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_pv,代码行数:8,代码来源:Collection_Test.php

示例10: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mSubRegister = $this->_mock(\Praxigento\Pv\Observer\Sub\Register::class);
     /** create object to test */
     $this->obj = new CheckoutSubmitAllAfter($this->mSubRegister);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_pv,代码行数:8,代码来源:CheckoutSubmitAllAfter_Test.php

示例11: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mSubject = $this->_mock(\Magento\CatalogInventory\Model\Stock\Item::class);
     /** create object to test */
     $this->obj = new Item();
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_warehouse,代码行数:8,代码来源:Item_Test.php

示例12: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->mCallDownlineMap = $this->_mock(\Praxigento\Downline\Service\IMap::class);
     $this->mCallDownlineSnap = $this->_mock(\Praxigento\Downline\Service\ISnap::class);
     $this->mToolDownlineTree = $this->_mock(\Praxigento\Downline\Tool\ITree::class);
     $this->sub = new Qualification($this->mCallDownlineMap, $this->mCallDownlineSnap, $this->mToolDownlineTree);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_bonus_global_sales,代码行数:8,代码来源:Qualification_Test.php

示例13: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mQueryModGrid = $this->_mock(\Praxigento\Warehouse\Repo\Modifier\Product\Grid::class);
     /** create object to test */
     $this->obj = new AddQuantityFieldToCollection($this->mQueryModGrid);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_warehouse,代码行数:8,代码来源:AddQuantityFieldToCollection_Test.php

示例14: setUp

 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mSubject = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class);
     /** create object to test */
     $this->obj = new TypeProcessorToTest();
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:8,代码来源:TypeProcessor_Test.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $resource = ObjectManager::getInstance()->get(\Magento\Framework\App\ResourceConnection::class);
     $repoGeneric = ObjectManager::getInstance()->get(\Praxigento\Core\Repo\IGeneric::class);
     $this->_obj = new Entity($resource, $repoGeneric, DataEntity::class);
     $this->_obj2 = new Entity($resource, $repoGeneric, DataEntityOther::class);
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:8,代码来源:Entity_Test.php


注:本文中的Praxigento\Core\Test\BaseCase\Mockery类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。