Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class DisabledDataExceptionTest extends \PHPUnit_Framework_TestCase |
||
23 | { |
||
24 | /** |
||
25 | * Tests the constructor |
||
26 | * |
||
27 | * @return void |
||
28 | * @expectedException SwissPaymentSlip\SwissPaymentSlip\Exception\DisabledDataException |
||
29 | * @expectedExceptionMessage You are accessing the disabled FooBar. You need to re-enable it first |
||
30 | * @covers ::__construct |
||
31 | */ |
||
32 | public function testConstructor() |
||
33 | { |
||
34 | throw new DisabledDataException('FooBar'); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Tests the getDataName method |
||
39 | * |
||
40 | * @return void |
||
41 | * @covers ::getDataName |
||
42 | */ |
||
43 | public function testGetDataName() |
||
47 | } |
||
48 | } |
||
49 |