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