@@ 33-47 (lines=15) @@ | ||
30 | /** |
|
31 | * Cluster test case. |
|
32 | */ |
|
33 | class ClusterTest extends BaseCompositeTest { |
|
34 | ||
35 | /** |
|
36 | * Prepares the environment before running a test. |
|
37 | */ |
|
38 | protected function setUp() : void { |
|
39 | parent::setUpExtended(); |
|
40 | $base_name = 'foo'; |
|
41 | $this->type = 'cluster'; |
|
42 | $this->name = "{$this->type}_{$base_name}"; |
|
43 | $this->Subgraph = new Cluster($this->dic); |
|
44 | $this->Subgraph->setName($base_name); |
|
45 | } |
|
46 | ||
47 | } |
|
48 |
@@ 33-47 (lines=15) @@ | ||
30 | /** |
|
31 | * Subgraph test case. |
|
32 | */ |
|
33 | class SubgraphTest extends BaseCompositeTest { |
|
34 | ||
35 | /** |
|
36 | * Prepares the environment before running a test. |
|
37 | */ |
|
38 | protected function setUp() : void { |
|
39 | parent::setUpExtended(); |
|
40 | $base_name = 'sub'; |
|
41 | $this->type = 'subgraph'; |
|
42 | $this->name = $base_name; |
|
43 | $this->Subgraph = new Subgraph($this->dic); |
|
44 | $this->Subgraph->setName($base_name); |
|
45 | } |
|
46 | ||
47 | } |
|
48 |