本文整理汇总了PHP中OpenStack\Test\TestCase类的典型用法代码示例。如果您正苦于以下问题:PHP TestCase类的具体用法?PHP TestCase怎么用?PHP TestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->policy = new Policy($this->client->reveal(), new Api());
$this->policy->id = 'POLICY_ID';
}
示例2: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->domain = new Domain($this->client->reveal(), new Api());
$this->domain->id = 'DOMAIN_ID';
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->flavor = new Flavor($this->client->reveal(), new Api());
$this->flavor->id = 1;
}
示例4: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->user = new User($this->client->reveal(), new Api());
$this->user->id = 'USER_ID';
}
示例5: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->volumeType = new VolumeType($this->client->reveal(), new Api());
$this->volumeType->id = '1';
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = __DIR__;
$this->def = ['method' => 'GET', 'path' => 'test', 'params' => []];
$this->operator = new TestOperator($this->client->reveal(), new ComputeV2Api());
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->securityGroup = new SecurityGroup($this->client->reveal(), new Api());
$this->securityGroup->id = self::SECURITY_GROUP_ID;
}
示例8: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->project = new Project($this->client->reveal(), new Api());
$this->project->id = 'PROJECT_ID';
}
示例9: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->image = new Image($this->client->reveal(), new Api());
$this->image->id = 'imageId';
}
示例10: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->network = new Network($this->client->reveal(), new Api());
$this->network->id = 'networkId';
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->floatingIp = new FloatingIp($this->client->reveal(), new Api());
$this->floatingIp->id = 'id';
}
示例12: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->securityGroupRule = new SecurityGroupRule($this->client->reveal(), new Api());
$this->securityGroupRule->id = 'id';
}
示例13: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->credential = new Credential($this->client->reveal(), new Api());
$this->credential->id = 'CRED_ID';
}
示例14: setUp
public function setUp()
{
$this->rootFixturesDir = dirname(__DIR__);
parent::setUp();
$this->token = new Token($this->client->reveal(), new Api());
$this->token->id = 'TOKEN_ID';
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->rootFixturesDir = dirname(__DIR__);
$this->container = new Container($this->client->reveal(), new Api());
$this->container->name = self::NAME;
}