1 | <?php |
||
16 | class UserTest extends PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | use ChangeProtectedAttribute; |
||
19 | |||
20 | /** |
||
21 | * @return multitype:multitype:number |
||
|
|||
22 | */ |
||
23 | public function validObjects() |
||
36 | |||
37 | /** |
||
38 | * @return multitype:multitype:number |
||
39 | */ |
||
40 | public function invalidObjects() |
||
53 | |||
54 | /** |
||
55 | * @test |
||
56 | * @dataProvider validObjects |
||
57 | * @covers \User\Entity\User::setName |
||
58 | */ |
||
59 | public function setNameReturnEmptyOnSuccess($obj) |
||
67 | |||
68 | /** |
||
69 | * @test |
||
70 | * @dataProvider invalidObjects |
||
71 | * @covers \User\Entity\User::setName |
||
72 | * @expectedException \InvalidArgumentException |
||
73 | */ |
||
74 | public function setNameThrowsExceptionWhenEmpty($obj) |
||
79 | |||
80 | /** |
||
81 | * @test |
||
82 | * @dataProvider validObjects |
||
83 | * @covers \User\Entity\User::getName |
||
84 | */ |
||
85 | public function getNameReturnNameAttribute($obj) |
||
93 | |||
94 | /** |
||
95 | * @test |
||
96 | * @dataProvider validObjects |
||
97 | * @covers \User\Entity\User::getEmail |
||
98 | */ |
||
99 | public function getEmailReturnEmailAttribute($obj) |
||
107 | |||
108 | /** |
||
109 | * @test |
||
110 | * @dataProvider validObjects |
||
111 | * @covers \User\Entity\User::setEmail |
||
112 | */ |
||
113 | public function setEmailReturnEmptyOnSuccess($obj) |
||
121 | |||
122 | /** |
||
123 | * @test |
||
124 | * @dataProvider invalidObjects |
||
125 | * @covers \User\Entity\User::setEmail |
||
126 | * @expectedException \InvalidArgumentException |
||
127 | */ |
||
128 | public function setEmailThrowsInvalidArgumentExceptoinWhenInvalid($obj) |
||
133 | } |
||
134 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.