当前位置: 首页>>代码示例>>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;未经允许,请勿转载。