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


PHP BaseTest::setup方法代碼示例

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


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

示例1: setup

 public function setup()
 {
     parent::setup();
     $this->model = new TestPrecisionModel();
     $viewStub = $this->getMockBuilder('AListView')->disableOriginalConstructor()->getMock();
     $this->view = $viewStub;
     $this->adapter = new DecimalListViewColumnAdapter('numberPositive5Precision', $this->view, array());
     $this->decimal = 'numberPositive5Precision';
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:9,代碼來源:DecimalListViewColumnAdapterTest.php

示例2: setup

 public function setup()
 {
     parent::setup();
     Yii::app()->user->userModel = User::getByUsername('super');
     Yii::app()->user->userModel->timeZone = 'America/Chicago';
     //Deal with daylight savings time.
     $timeZoneObject = new DateTimeZone(Yii::app()->user->userModel->timeZone);
     $offsetInSeconds = $timeZoneObject->getOffset(new DateTime());
     $this->assertTrue($offsetInSeconds == -18000 || $offsetInSeconds == -21600);
     self::$chicagoOffsetInSeconds = $offsetInSeconds;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:11,代碼來源:RedBeanModelSelectQueryAdapterTest.php

示例3: setUp

 public function setUp()
 {
     parent::setup();
     $this->exception = "{$this->namespace}\\Exceptions\\MessageException";
 }
開發者ID:sevenymedia,項目名稱:bulksmscenter-http-api,代碼行數:5,代碼來源:MessageTest.php

示例4: setUp

 public function setUp()
 {
     parent::setup();
     $this->client = new \MessageBird\Client('YOUR_ACCESS_KEY', $this->mockClient);
 }
開發者ID:skytoa,項目名稱:php-rest-api,代碼行數:5,代碼來源:MessagesTest.php

示例5: setUp

 public function setUp()
 {
     parent::setup();
     $this->client = new \BulkSmsCenter\Client($this->mockAuth, $this->mockClient);
     $this->exception = "{$this->namespace}\\Exceptions\\ClientException";
 }
開發者ID:sevenymedia,項目名稱:bulksmscenter-http-api,代碼行數:6,代碼來源:ClientTest.php

示例6: setup

 public function setup()
 {
     parent::setup();
     $this->formatter = new Formatter();
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:5,代碼來源:FormatterTest.php

示例7: setUp

 public function setUp()
 {
     $this->testClass = new VocabFetcher($this->getLogger(), array("api" => $this->getApi(), "file" => $this->getFile()));
     parent::setup();
 }
開發者ID:johnshopkins,項目名稱:wp-supertags,代碼行數:5,代碼來源:VocabFetcherTest.php

示例8: setup

 public function setup()
 {
     $this->invitationObject = new CustomerInvitation(__DIR__ . '/../data/customers.json');
     //static::$pathToCustomersJsonFile, 53.3381985, -6.2592576);
     parent::setup();
 }
開發者ID:shoaibi,項目名稱:customer-party,代碼行數:6,代碼來源:CustomerInvitationTest.php

示例9: setup

 public function setup()
 {
     parent::setup();
     Yii::app()->user->userModel = User::getByUsername('super');
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:5,代碼來源:CalendarUtilTest.php


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