当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseTestCase::setUp方法代码示例

本文整理汇总了PHP中BaseTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseTestCase::setUp方法的具体用法?PHP BaseTestCase::setUp怎么用?PHP BaseTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseTestCase的用法示例。


在下文中一共展示了BaseTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->setApplicationConstants();
     // TODO Auto-generated MailTest::setUp()
     $this->RW_Mail = new RW_Mail();
 }
开发者ID:realejo,项目名称:library-zf1,代码行数:10,代码来源:MailTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->status_column = 'status';
     $this->moderated_at_column = 'moderated_at';
     Post::$strictModeration = true;
 }
开发者ID:cryptixcoder,项目名称:laravel-moderation,代码行数:7,代码来源:ModerationTraitTest.php

示例3: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->c = new Criteria();
     $this->savedAdapter = Propel::getDB(null);
     Propel::setDB(null, new DBSQLite());
 }
开发者ID:kalaspuffar,项目名称:php-orm-benchmark,代码行数:7,代码来源:CriteriaCombineTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->posts = new PostRepository();
     $this->artisan('migrate', ['--database' => 'testbench', '--realpath' => realpath(__DIR__ . '/../migrations')]);
     $this->withFactories(realpath(__DIR__ . '/../factories'));
 }
开发者ID:dannyweeks,项目名称:laravel-base-repository,代码行数:7,代码来源:EloquentIntegrationTest.php

示例5: setup

 /**
  * Initialisation of config object
  *
  * @author 	Eddie Jaoude
  * @param 	null
  * @return 	null
  *
  */
 public function setup()
 {
     parent::setUp();
     $this->assertEquals(TRUE, is_object($this->_em));
     $this->model = $this->_em->getRepository('Auth_Model_Account');
     $this->appConfigAuth = new Zend_Config_Ini(APPLICATION_PATH . '/modules/auth/configs/auth.ini', APPLICATION_ENV);
 }
开发者ID:MarS2806,项目名称:Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD-,代码行数:15,代码来源:AccountTest.php

示例6: setUp

 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     require_once 'web\\WindForward.php';
     require_once 'viewer\\WindView.php';
     $this->WindForward = new WindForward();
 }
开发者ID:jellycheng,项目名称:windframework,代码行数:10,代码来源:WindForwardTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     require_once 'base\\WindActionException.php';
     require_once 'base\\WindErrorMessage.php';
     $this->errorMessage = new WindErrorMessage("error", "errorAction");
 }
开发者ID:jellycheng,项目名称:windframework,代码行数:7,代码来源:WindActionExceptionTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     MysqlUser::executeSchema();
     MysqlBook::executeSchema();
     MysqlRole::executeSchema();
 }
开发者ID:Symfomany,项目名称:laravel-mongo,代码行数:7,代码来源:MysqlRelationsTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->clickElement("id", "system");
     $this->clickElement("id", "company-sub-link");
     $this->wait(1000);
 }
开发者ID:gpawlik,项目名称:laravel-projects-codebase,代码行数:7,代码来源:CompanyBaseTestCase.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     if (!isset($GLOBALS['PHPUNIT_SA_LEARN_ENABLED']) || $GLOBALS['PHPUNIT_SA_LEARN_ENABLED'] == 0) {
         $this->markTestSkipped('To test the learning behavior, enable the TELL ' . 'command in SpamAssassin and update phpunit.xml');
     }
 }
开发者ID:perk11,项目名称:php-spamassassin,代码行数:7,代码来源:RevokeTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     \DB::enableQueryLog();
     $this->artisan('migrate', ['--database' => 'testbench', '--realpath' => realpath(__DIR__ . '/../migrations')]);
     $this->withFactories(realpath(__DIR__ . '/../factories'));
     $this->repo = new CachingRepository();
 }
开发者ID:dannyweeks,项目名称:laravel-base-repository,代码行数:8,代码来源:CachingTraitTest.php

示例12: setUp

 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->dropTables()->createTables();
     $this->Db = new RW_App_Model_Db($this->tableName, $this->tableKeyName);
     // Remove as pastas criadas
     $this->setApplicationConstants()->clearApplicationData();
 }
开发者ID:realejo,项目名称:library-zf1,代码行数:11,代码来源:DbTest.php

示例13: setUp

 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     // Verifica se a pasta do APPLICATION DATA
     $this->setApplicationConstants()->clearApplicationData();
     // TODO Auto-generated RW_App_Model_UploadTest::setUp()
     $this->RW_App_Model_Upload = new RW_App_Model_Upload();
 }
开发者ID:realejo,项目名称:library-zf1,代码行数:11,代码来源:UploadTest.php

示例14: setUp

 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     // Não inicializa o APPLICATION_DATA pois alguns testes exigem que ele não exista
     //@todo é possível ser condicional? teste case separado?
     // Remove as pastas criadas
     //$this->clearApplicationData();
 }
开发者ID:realejo,项目名称:library-zf1,代码行数:11,代码来源:CacheTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->data = new Matrix(10, 10);
     $this->data->set(1, 1, 0);
     $this->data->set(1, 2, 0);
     $this->board = new Battleships\Board($this->data);
 }
开发者ID:plamen-paskov,项目名称:battleships,代码行数:8,代码来源:BoardTest.php


注:本文中的BaseTestCase::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。