當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。