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


PHP BaseTest::setUp方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->pwd = dirname(__FILE__);
     $this->image_location = $this->pwd . "/resources/pitbull.jpg";
     $this->rs = $this->jc->repositoryService();
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:7,代码来源:RepositoryServiceTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->os = $this->jc->optionsService();
     $this->report_uri = '/reports/samples/Cascading_multi_select_report';
     $this->testSuccess = false;
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:7,代码来源:ReportOptionsTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->fsql = new Environment();
     $this->fsql->define_db('db1', parent::$tempDir);
     $this->fsql->select_db('db1');
 }
开发者ID:sbuberl,项目名称:fSQL,代码行数:7,代码来源:CreateTableTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     parent::createSuperClient();
     $this->ies = $this->jcSuper->importExportService();
     $this->import_file = file_get_contents(dirname(__FILE__) . '/resources/jasperadmin_import.zip');
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:7,代码来源:ImportExportServiceTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $fsql = new Environment();
     $fsql->define_db('db1', parent::$tempDir);
     $this->schema = $fsql->get_database('db1')->getSchema('public');
 }
开发者ID:sbuberl,项目名称:fSQL,代码行数:7,代码来源:CachedTableTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->newUser = u::createUser();
     $this->us = $this->jc->userService();
     $this->us->addOrUpdateUser($this->newUser);
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:7,代码来源:UserServiceTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $dir = __DIR__ . '/03/output';
     if (!is_dir($dir)) {
         mkdir($dir);
     }
 }
开发者ID:genesis-php,项目名称:genesis,代码行数:8,代码来源:CommandsTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->fsql = new Environment();
     $this->fsql->define_db('db1', parent::$tempDir);
     $this->fsql->select_db('db1');
     $this->sequences = new SequencesFile($this->fsql->current_schema());
 }
开发者ID:sbuberl,项目名称:fSQL,代码行数:8,代码来源:CreateSequenceTest.php

示例9: setUp

 /** Coverage: createRole **/
 public function setUp()
 {
     parent::setUp();
     //	$this->newUser = u::createUser();
     $this->rs = $this->jc->roleService();
     $this->newRole = new Role('NOT_A_REAL_ROLE', 'organization_1');
     $this->rs->createRole($this->newRole);
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:9,代码来源:RoleServiceTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->testOrg = new Organization('testorg', 'testorg', 'organization_1', 'testorg');
     $this->subOrg = new Organization('suborg', 'suborg', 'testorg', 'suborg');
     $this->os = $this->jc->organizationService();
     $this->os->createOrganization($this->testOrg);
     $this->os->createOrganization($this->subOrg);
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:9,代码来源:OrganizationServiceTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $fsql = new Environment();
     $database = new Database($fsql, 'db1', parent::$tempDir);
     $database->create();
     $this->schema = $database->getSchema('public');
     $this->sequences = new SequencesFile($this->schema);
 }
开发者ID:sbuberl,项目名称:fSQL,代码行数:9,代码来源:SequenceFileTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = new User();
     $this->user->setUsername('w00ting');
     $this->dm->persist($this->user);
     $this->dm->flush();
     $this->repository = $this->dm->getRepository('Documents\\User');
 }
开发者ID:jacques-sounvi,项目名称:addressbook,代码行数:9,代码来源:RepositoriesTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->simpleXmls = array();
     $this->simpleXmls['WithSignature'] = new \SimpleXMLElement($this->GetEpsData('BankConfirmationDetailsWithSignature.xml'));
     $this->simpleXmls['UnstructuredWithoutSignature'] = new \SimpleXMLElement($this->GetEpsData('BankConfirmationDetailsWithoutSignatureUnstructuredRemittanceIdentifier.xml'));
     $this->simpleXmls['WithoutSignature'] = new \SimpleXMLElement($this->GetEpsData('BankConfirmationDetailsWithoutSignature.xml'));
     $this->simpleXmls['UnstructuredWithSignature'] = new \SimpleXMLElement($this->GetEpsData('BankConfirmationDetailsWithSignatureUnstructuredRemittanceIdentifier.xml'));
 }
开发者ID:hakito,项目名称:php-stuzza-eps-banktransfer,代码行数:9,代码来源:BankConfirmationDetailsTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->subDir = parent::$tempDir . 'sub/';
     mkdir($this->subDir);
     $fsql = new Environment();
     $fsql->define_db('db1', parent::$tempDir);
     $this->db = $fsql->get_database('db1');
 }
开发者ID:sbuberl,项目名称:fSQL,代码行数:9,代码来源:SchemaTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->newUser = u::createUser();
     $this->attr = new Attribute('Gender', 'Robot');
     $this->attr2 = new Attribute('Favorite Beer', 'Anchor Steam');
     $this->us = $this->jc->userService();
     $this->us->addOrUpdateUser($this->newUser);
 }
开发者ID:alexandrinno,项目名称:jrs-rest-php-client,代码行数:9,代码来源:AttributeServiceTest.php


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