當前位置: 首頁>>代碼示例>>PHP>>正文


PHP YouniqueTestCase::setUp方法代碼示例

本文整理匯總了PHP中YouniqueTestCase::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP YouniqueTestCase::setUp方法的具體用法?PHP YouniqueTestCase::setUp怎麽用?PHP YouniqueTestCase::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在YouniqueTestCase的用法示例。


在下文中一共展示了YouniqueTestCase::setUp方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Coupon = ClassRegistry::init('Coupon');
     $this->CouponPresenter = ClassRegistry::init('CouponPresenter');
     $this->CouponPresenterUser = ClassRegistry::init('CouponPresenterUser');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:7,代碼來源:CouponTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->PresenterSite = ClassRegistry::init('PresenterSite');
     $this->User = ClassRegistry::init('User');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:7,代碼來源:PresenterTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Look = ClassRegistry::init('Look');
     $this->Item = ClassRegistry::init('Item');
     $this->LookItem = ClassRegistry::init('LookItem');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:7,代碼來源:LookTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Order = ClassRegistry::init('Order');
     $this->OrderCustomer = ClassRegistry::init('OrderCustomer');
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->Order = ClassRegistry::init('Order');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:8,代碼來源:OrderCreateTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Party = ClassRegistry::init('Party');
     $this->User = ClassRegistry::init('User');
     $this->Order = ClassRegistry::init('Order');
     $this->OrderCommission = ClassRegistry::init('OrderCommission');
     $this->RoyaltiesEarned = ClassRegistry::init('RoyaltiesEarned');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:9,代碼來源:PartyCommissionTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Order = ClassRegistry::init('Order');
     $this->OrderCustomer = ClassRegistry::init('OrderCustomer');
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->Order = ClassRegistry::init('Order');
     $this->OrderCommission = ClassRegistry::init('OrderCommission');
     $this->RoyaltiesEarned = ClassRegistry::init('RoyaltiesEarned');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:10,代碼來源:OrderCreateCommissionTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     PHPUnit_Framework_Error_Notice::$enabled = FALSE;
     $CakeRequest = new CakeRequest();
     $CakeResponse = new CakeResponse();
     $this->Controller = new TestController($CakeRequest, $CakeResponse);
     $Collection = new ComponentCollection();
     $this->Payment = new PaymentComponent($Collection);
     $this->Payment->startup($this->Controller);
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:11,代碼來源:PaymentComponentTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Party = ClassRegistry::init('Party');
     $this->Order = ClassRegistry::init('Order');
     $this->OrderCustomer = ClassRegistry::init('OrderCustomer');
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->OrderCommission = ClassRegistry::init('OrderCommission');
     $this->RoyaltiesEarned = ClassRegistry::init('RoyaltiesEarned');
     $CakeRequest = new CakeRequest();
     $CakeResponse = new CakeResponse();
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:12,代碼來源:FrancePartyOrderycashcommissionTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->SystemSetting = ClassRegistry::init('SystemSetting');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:SystemSettingTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp('app.country');
     $this->LookAction = ClassRegistry::init('LookAction');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:LookActionTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->ShoppingCart = new ShoppingCartItem();
     $this->ShoppingCart->session = new SessionStub();
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:6,代碼來源:newEmptyPHP.php

示例12: setUp

 public function setUp()
 {
     parent::setUp('app.country');
     $this->Geolocation = ClassRegistry::init('Geolocation');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:GeolocationTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->PresenterType = ClassRegistry::init('PresenterType');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:PresenterTypeTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->State = ClassRegistry::init('State');
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:StateTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->resetModel();
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:5,代碼來源:UserTest.php


注:本文中的YouniqueTestCase::setUp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。