本文整理汇总了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';
}
示例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;
}
示例3: setUp
public function setUp()
{
parent::setup();
$this->exception = "{$this->namespace}\\Exceptions\\MessageException";
}
示例4: setUp
public function setUp()
{
parent::setup();
$this->client = new \MessageBird\Client('YOUR_ACCESS_KEY', $this->mockClient);
}
示例5: setUp
public function setUp()
{
parent::setup();
$this->client = new \BulkSmsCenter\Client($this->mockAuth, $this->mockClient);
$this->exception = "{$this->namespace}\\Exceptions\\ClientException";
}
示例6: setup
public function setup()
{
parent::setup();
$this->formatter = new Formatter();
}
示例7: setUp
public function setUp()
{
$this->testClass = new VocabFetcher($this->getLogger(), array("api" => $this->getApi(), "file" => $this->getFile()));
parent::setup();
}
示例8: setup
public function setup()
{
$this->invitationObject = new CustomerInvitation(__DIR__ . '/../data/customers.json');
//static::$pathToCustomersJsonFile, 53.3381985, -6.2592576);
parent::setup();
}
示例9: setup
public function setup()
{
parent::setup();
Yii::app()->user->userModel = User::getByUsername('super');
}