@@ -60,8 +60,8 @@ public function testGetFqsenAndGetName(): void
60
60
{
61
61
$ property = new Property ($ this ->fqsen );
62
62
63
- $ this -> assertSame ($ this ->fqsen , $ property ->getFqsen ());
64
- $ this -> assertEquals ($ this ->fqsen ->getName (), $ property ->getName ());
63
+ self :: assertSame ($ this ->fqsen , $ property ->getFqsen ());
64
+ self :: assertEquals ($ this ->fqsen ->getName (), $ property ->getName ());
65
65
}
66
66
67
67
/**
@@ -73,10 +73,10 @@ public function testGetFqsenAndGetName(): void
73
73
public function testGettingWhetherPropertyIsStatic (): void
74
74
{
75
75
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , false );
76
- $ this -> assertFalse ($ property ->isStatic ());
76
+ self :: assertFalse ($ property ->isStatic ());
77
77
78
78
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , true );
79
- $ this -> assertTrue ($ property ->isStatic ());
79
+ self :: assertTrue ($ property ->isStatic ());
80
80
}
81
81
82
82
/**
@@ -88,7 +88,7 @@ public function testGettingWhetherPropertyIsStatic(): void
88
88
public function testGettingWhetherPropertyIsReadOnly (): void
89
89
{
90
90
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null );
91
- $ this -> assertFalse ($ property ->isReadOnly ());
91
+ self :: assertFalse ($ property ->isReadOnly ());
92
92
93
93
$ property = new Property (
94
94
$ this ->fqsen ,
@@ -102,7 +102,7 @@ public function testGettingWhetherPropertyIsReadOnly(): void
102
102
true
103
103
);
104
104
105
- $ this -> assertTrue ($ property ->isReadOnly ());
105
+ self :: assertTrue ($ property ->isReadOnly ());
106
106
}
107
107
108
108
/**
@@ -115,7 +115,7 @@ public function testGettingVisibility(): void
115
115
{
116
116
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , true );
117
117
118
- $ this -> assertSame ($ this ->visibility , $ property ->getVisibility ());
118
+ self :: assertSame ($ this ->visibility , $ property ->getVisibility ());
119
119
}
120
120
121
121
/**
@@ -127,10 +127,10 @@ public function testGettingVisibility(): void
127
127
public function testSetAndGetTypes (): void
128
128
{
129
129
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , true );
130
- $ this -> assertEquals ([], $ property ->getTypes ());
130
+ self :: assertEquals ([], $ property ->getTypes ());
131
131
132
132
$ property ->addType ('a ' );
133
- $ this -> assertEquals (['a ' ], $ property ->getTypes ());
133
+ self :: assertEquals (['a ' ], $ property ->getTypes ());
134
134
}
135
135
136
136
/**
@@ -141,10 +141,12 @@ public function testSetAndGetTypes(): void
141
141
public function testGetDefault (): void
142
142
{
143
143
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , false );
144
- $ this -> assertNull ($ property ->getDefault ());
144
+ self :: assertNull ($ property ->getDefault ());
145
145
146
- $ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , 'a ' , true );
147
- $ this ->assertEquals ('a ' , $ property ->getDefault ());
146
+ $ expression = new Expression ('a ' );
147
+ $ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , $ expression , true );
148
+ self ::assertSame ('a ' , $ property ->getDefault ());
149
+ self ::assertSame ($ expression , $ property ->getDefault (false ));
148
150
}
149
151
150
152
/**
@@ -155,7 +157,7 @@ public function testGetDefault(): void
155
157
public function testGetDocBlock (): void
156
158
{
157
159
$ property = new Property ($ this ->fqsen , $ this ->visibility , $ this ->docBlock , null , false );
158
- $ this -> assertSame ($ this ->docBlock , $ property ->getDocBlock ());
160
+ self :: assertSame ($ this ->docBlock , $ property ->getDocBlock ());
159
161
}
160
162
161
163
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided (): void
@@ -184,9 +186,9 @@ public function testGetType(): void
184
186
$ type
185
187
);
186
188
187
- $ this -> assertSame ($ type , $ fixture ->getType ());
189
+ self :: assertSame ($ type , $ fixture ->getType ());
188
190
189
191
$ fixture = new Property ($ this ->fqsen );
190
- $ this -> assertNull ($ fixture ->getType ());
192
+ self :: assertNull ($ fixture ->getType ());
191
193
}
192
194
}
0 commit comments