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


PHP TestBase::setUp方法代碼示例

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


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

示例1: setUp

 /**
  * Set up.
  */
 function setUp()
 {
     parent::setUp();
     $this->createRequest("debug_clear")->exec();
     $r = $this->createRequest("new_address")->exec();
     $this->address = $r["address"];
 }
開發者ID:limikael,項目名稱:blockchainwalletmock,代碼行數:10,代碼來源:TransactionTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     // Set the languages
     config()->set('translatable.locales', ['en', 'tr']);
     $this->setUpNodeType();
 }
開發者ID:NuclearCMS,項目名稱:Hierarchy,代碼行數:7,代碼來源:NodeTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->path = FIXTURES . DS . 'tests';
     $this->bootstrap = dirname(FIXTURES) . DS . 'bootstrap.php';
     $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper';
 }
開發者ID:bruno-arsene,項目名稱:paratest,代碼行數:7,代碼來源:WorkerTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     if (!self::$connectionSet) {
         LudoDb::setConnectionType('PDO');
     }
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:7,代碼來源:PDOTests.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setUpNodeType();
     NodeSource::flushEventListeners();
     NodeSource::boot();
 }
開發者ID:NuclearCMS,項目名稱:Hierarchy,代碼行數:7,代碼來源:NodeSourceTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     // Let the current user do anything.
     global $current_user;
     $current_user->add_cap('promote_users');
 }
開發者ID:gitter-badger,項目名稱:tabulate-1,代碼行數:7,代碼來源:ReportsTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $g = new TestGame();
     $g->drop()->yesImSure();
     $g->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:7,代碼來源:AccessorTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $s = new Section();
     $s->drop()->yesImSure();
     $s->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:7,代碼來源:ColumnAliasTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     // We do this due to a bug
     // otherwise helper is not loaded
     app()->make('settings');
 }
開發者ID:kenarkose,項目名稱:settlement,代碼行數:7,代碼來源:SettingHelperTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     LudoDB::setConnectionType('PDO');
     $this->startTimer();
     $person = new Person();
     $person->deleteTableData();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:8,代碼來源:PerformanceTest.php

示例11: setUp

 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     static::skipIfCodeCoverageNotEnabled();
     $this->targetDir = str_replace('.', '_', uniqid('/tmp/paratest-', true));
     $this->removeDirectory($this->targetDir);
     mkdir($this->targetDir);
 }
開發者ID:brianium,項目名稱:paratest,代碼行數:11,代碼來源:CoverageMergerTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->root = vfsStream::setup('root_dir', null, ['foo.txt' => 'foobar', 'bar.php' => '<?php echo "bar";']);
     vfsStream::newFile('large.txt')->withContent(LargeFileContent::withMegabytes(100))->at($this->root);
     app()['path.upload'] = vfsStream::url('root_dir') . '/upload';
     $this->uploadService = app()->make('transit.upload');
 }
開發者ID:kenarkose,項目名稱:transit,代碼行數:8,代碼來源:UploadServiceTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $p = new PersonForUtility();
     if ($p->exists()) {
         $p->drop()->yesImSure();
     }
     $p->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:9,代碼來源:LudoDBUtilityTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $car = new Car();
     $car->drop()->yesImSure();
     $car->createTable();
     $pr = new CarProperty();
     $pr->drop()->yesImSure();
     $pr->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:10,代碼來源:CollectionTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $c = new LudoDBCache();
     $c->drop()->yesImSure();
     $c->createTable();
     $c = new Capital();
     $c->drop()->yesImSure();
     $c->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:10,代碼來源:CacheTest.php


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