Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
2 | class ReferenceTest extends \PHPUnit\Framework\TestCase |
||
3 | { |
||
4 | /** |
||
5 | * Test getProject method |
||
6 | * |
||
7 | * Test that getProject method works conclusively by setting random |
||
8 | * description and checking for that as the description of the retrieved |
||
9 | * project - e g not a default/hardcoded description. |
||
10 | * |
||
11 | * @return void |
||
12 | */ |
||
13 | public function testGetProject() |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @expectedException BuildException |
||
25 | * @expectedExceptionMessage Reference refOne not found. |
||
26 | */ |
||
27 | public function testGetReferencedObjectThrowsExceptionIfReferenceNotSet() |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @expectedException BuildException |
||
36 | * @expectedExceptionMessage No reference specified |
||
37 | */ |
||
38 | public function testGetReferencedObjectThrowsExceptionIfNoReferenceIsGiven() |
||
45 |