Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
2 | class DataTypeTest extends \PHPUnit\Framework\TestCase |
||
3 | { |
||
4 | protected function setUp(): void |
||
5 | { |
||
6 | $this->datatype = new DataType(); |
||
|
|||
7 | } |
||
8 | |||
9 | /** |
||
10 | * testTooManyAttributes |
||
11 | * |
||
12 | * @expectedException BuildException |
||
13 | * @expectedExceptionMessage You must not specify more than one attribute when using refid |
||
14 | */ |
||
15 | public function testTooManyAttributes() |
||
16 | { |
||
17 | $ex = $this->datatype->tooManyAttributes(); |
||
18 | throw $ex; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * testNoChildrenAllowedException |
||
23 | * |
||
24 | * @expectedException BuildException |
||
25 | * @expectedExceptionMessage You must not specify nested elements when using refid |
||
26 | */ |
||
27 | public function testNoChildrenAllowedException() |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * testCircularReferenceException |
||
35 | * |
||
36 | * @expectedException BuildException |
||
37 | * @expectedExceptionMessage This data type contains a circular reference. |
||
38 | */ |
||
39 | public function testCircularReferenceException() |
||
40 | { |
||
41 | $ex = $this->datatype->circularReference(); |
||
42 | throw $ex; |
||
43 | } |
||
44 | |||
45 | public function testToString() |
||
50 | } |
||
51 | } |
||
52 |