Passed
Push — new-version ( 5cf7df...15c810 )
by Jeroen
03:21
created

PropertyTest::testEmptyEmail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace JeroenDesloovere\VCard\Property;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * How to execute all tests: `vendor/bin/phpunit tests`
9
 */
10
final class PropertyTest extends TestCase
11
{
12
    /**
13
     * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException
14
     * @expectedExceptionMessage The property you are trying to add is empty.
15
     */
16
    public function testEmptyName(): void
17
    {
18
        new Name();
19
    }
20
21
    /**
22
     * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException
23
     * @expectedExceptionMessage The property you are trying to add is empty.
24
     */
25
    public function testEmptyAddress(): void
26
    {
27
        new Address();
28
    }
29
30
    /**
31
     * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException
32
     * @expectedExceptionMessage The property you are trying to add is empty.
33
     */
34
    public function testEmptyEmail(): void
35
    {
36
        new Email();
37
    }
38
39
    /**
40
     * @expectedException \JeroenDesloovere\VCard\Exception\PropertyException
41
     * @expectedExceptionMessage The property you are trying to add is empty.
42
     */
43
    public function testEmptyGender(): void
44
    {
45
        new Gender();
46
    }
47
}
48