コード例 #1
0
 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';
 }
 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
0
 public function setUp()
 {
     parent::setup();
     $this->exception = "{$this->namespace}\\Exceptions\\MessageException";
 }
コード例 #4
0
ファイル: MessagesTest.php プロジェクト: skytoa/php-rest-api
 public function setUp()
 {
     parent::setup();
     $this->client = new \MessageBird\Client('YOUR_ACCESS_KEY', $this->mockClient);
 }
コード例 #5
0
 public function setUp()
 {
     parent::setup();
     $this->client = new \BulkSmsCenter\Client($this->mockAuth, $this->mockClient);
     $this->exception = "{$this->namespace}\\Exceptions\\ClientException";
 }
コード例 #6
0
 public function setup()
 {
     parent::setup();
     $this->formatter = new Formatter();
 }
コード例 #7
0
 public function setUp()
 {
     $this->testClass = new VocabFetcher($this->getLogger(), array("api" => $this->getApi(), "file" => $this->getFile()));
     parent::setup();
 }
コード例 #8
0
 public function setUp()
 {
     parent::setup();
     $this->exception = "{$this->namespace}\\Exceptions\\HttpClientException";
 }
コード例 #9
0
 public function setup()
 {
     $this->invitationObject = new CustomerInvitation(__DIR__ . '/../data/customers.json');
     //static::$pathToCustomersJsonFile, 53.3381985, -6.2592576);
     parent::setup();
 }
コード例 #10
0
 public function setup()
 {
     parent::setup();
     Yii::app()->user->userModel = User::getByUsername('super');
 }