File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,18 @@ public function testSetProperty() {
159
159
$ this ->assertSame ($ expected_value , $ this ->example_object ->get_value ($ property_name ));
160
160
}
161
161
162
+ public function testSetStaticProperty () {
163
+ $ property_name = 'example_static_property ' ;
164
+ $ expected_value = uniqid ();
165
+
166
+ $ starting_value = example_class::get_static_value ($ property_name );
167
+ reflection::set_property (example_class::class, $ property_name , $ expected_value );
168
+ $ new_value = example_class::get_static_value ($ property_name );
169
+
170
+ $ this ->assertNotSame ($ starting_value , $ new_value );
171
+ $ this ->assertSame ($ expected_value , $ new_value );
172
+ }
173
+
162
174
// These have to be seperate as data providers don't have access to things defined in setUp()
163
175
164
176
/**
You can’t perform that action at this time.
0 commit comments