Skip to content

Commit

Permalink
PHP 8.1 minimum version prep
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Mar 14, 2024
1 parent dcf2fd3 commit 56681a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/HelperFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ public function testThat_get_object_property_value_WorksAsExpected() {
// Object without __get, __isset & __set and some real public, protected
// and private properties
$obj_real_and_dynamic_props_and_no_magic_methods = new TestValueObject2('John Doe', 47);
$obj_real_and_dynamic_props_and_no_magic_methods->dynamic_property1 = 'dynamic_property1';
$obj_real_and_dynamic_props_and_no_magic_methods->dynamic_property2 = 'dynamic_property2';

// StdClass Objects without __get, __isset & __set
$obj_without_magic_methods =
Expand Down Expand Up @@ -228,8 +226,6 @@ public function testThat_get_object_property_value_WorksAsExpected() {
$this->assertSame( get_object_property_value($obj_real_and_dynamic_props_and_no_magic_methods, 'age'), 47 ); // public property
$this->assertSame( get_object_property_value($obj_real_and_dynamic_props_and_no_magic_methods, 'protected_field', null, true), 'protected_field' ); // protected property
$this->assertSame( get_object_property_value($obj_real_and_dynamic_props_and_no_magic_methods, 'private_field', null, true), 'private_field' ); // private property
$this->assertSame( get_object_property_value($obj_real_and_dynamic_props_and_no_magic_methods, 'dynamic_property1'), 'dynamic_property1' ); // dynamically assigned property
$this->assertSame( get_object_property_value($obj_real_and_dynamic_props_and_no_magic_methods, 'dynamic_property2'), 'dynamic_property2' ); // dynamically assigned property
}

public function testThatNonIntendedProtectedPropertyAccessVia_get_object_property_value_WorksAsExpected() {
Expand Down

0 comments on commit 56681a5

Please sign in to comment.