當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。