8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380e2ba commit 18759e1Copy full SHA for 18759e1
src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
@@ -139,6 +139,18 @@ public function testGetValueNotModifyObject()
139
$this->assertSame(array('Bernhard'), $object->firstName);
140
}
141
142
+ /**
143
+ * @expectedException \Symfony\Component\PropertyAccess\Exception\NoSuchIndexException
144
+ */
145
+ public function testGetValueNotModifyObjectException()
146
+ {
147
+ $propertyAccessor = new PropertyAccessor(false, true);
148
+ $object = new \stdClass();
149
+ $object->firstName = array('Bernhard');
150
+
151
+ $propertyAccessor->getValue($object, 'firstName[1]');
152
+ }
153
154
/**
155
* @expectedException \Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException
156
*/
0 commit comments