mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Utilities > Reflection > setPropertyValue() method > fix description and test
This commit is contained in:
@@ -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 mixed $object Object that should contains given property
|
||||||
* @param string $property Name of the property
|
* @param string $property Name of the property
|
||||||
|
|||||||
@@ -484,9 +484,7 @@ class ReflectionTest extends BaseTestCase
|
|||||||
public function testSetPropertyValueUsingNotExistingProperty($object, $property)
|
public function testSetPropertyValueUsingNotExistingProperty($object, $property)
|
||||||
{
|
{
|
||||||
$this->setExpectedException(NotExistingPropertyException::class);
|
$this->setExpectedException(NotExistingPropertyException::class);
|
||||||
|
Reflection::setPropertyValue($object, $property, 'test test test');
|
||||||
$object = new \stdClass();
|
|
||||||
Reflection::setPropertyValue($object, 'test', 'test test test');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user