/** * @dataProvider testSetValueProvider */ public function testSetValue($propertyPath, $expectedValue, $failOnError = true) { $testObject = new TestObject(); PropertyAccessor::setValue($testObject, $propertyPath, $expectedValue, $failOnError); $this->assertEquals($expectedValue, PropertyAccessor::getValue($testObject, $propertyPath, $failOnError)); }