本文整理汇总了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();
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->os = $this->jc->optionsService();
$this->report_uri = '/reports/samples/Cascading_multi_select_report';
$this->testSuccess = false;
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->fsql = new Environment();
$this->fsql->define_db('db1', parent::$tempDir);
$this->fsql->select_db('db1');
}
示例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');
}
示例5: setUp
public function setUp()
{
parent::setUp();
$fsql = new Environment();
$fsql->define_db('db1', parent::$tempDir);
$this->schema = $fsql->get_database('db1')->getSchema('public');
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->newUser = u::createUser();
$this->us = $this->jc->userService();
$this->us->addOrUpdateUser($this->newUser);
}
示例7: setUp
public function setUp()
{
parent::setUp();
$dir = __DIR__ . '/03/output';
if (!is_dir($dir)) {
mkdir($dir);
}
}
示例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());
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
示例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'));
}
示例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');
}
示例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);
}