Utilities > Reflection > setPropertyValue() method > fix description and test

This commit is contained in:
Meritoo
2018-11-03 08:16:49 +01:00
parent b4ccbbac11
commit 4e600ec599
2 changed files with 2 additions and 4 deletions

View File

@@ -662,7 +662,7 @@ class Reflection
}
/**
* Sets value of given property
* Sets value of given property in given object
*
* @param mixed $object Object that should contains given property
* @param string $property Name of the property

View File

@@ -484,9 +484,7 @@ class ReflectionTest extends BaseTestCase
public function testSetPropertyValueUsingNotExistingProperty($object, $property)
{
$this->setExpectedException(NotExistingPropertyException::class);
$object = new \stdClass();
Reflection::setPropertyValue($object, 'test', 'test test test');
Reflection::setPropertyValue($object, $property, 'test test test');
}
/**