| Total Complexity | 4 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | |||
| 11 | /** | ||
| 12 | * How to execute all tests: `vendor/bin/phpunit tests` | ||
| 13 | */ | ||
| 14 | final class PropertyTest extends TestCase | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException | ||
| 18 | * @expectedExceptionMessage The property you are trying to add is empty. | ||
| 19 | */ | ||
| 20 | public function testEmptyName(): void | ||
| 21 |     { | ||
| 22 | new Name(); | ||
| 23 | } | ||
| 24 | |||
| 25 | /** | ||
| 26 | * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException | ||
| 27 | * @expectedExceptionMessage The property you are trying to add is empty. | ||
| 28 | */ | ||
| 29 | public function testEmptyAddress(): void | ||
| 30 |     { | ||
| 31 | new Address(); | ||
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException | ||
| 36 | * @expectedExceptionMessage The property you are trying to add is empty. | ||
| 37 | */ | ||
| 38 | public function testEmptyEmail(): void | ||
| 41 | } | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException | ||
| 45 | * @expectedExceptionMessage The property you are trying to add is empty. | ||
| 46 | */ | ||
| 52 |