|
22 | 22 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestAdderRemoverInvalidArgumentLength; |
23 | 23 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestAdderRemoverInvalidMethods; |
24 | 24 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClass; |
25 | | -use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClassDynamicProperty; |
26 | 25 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClassIsWritable; |
27 | 26 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClassMagicCall; |
28 | 27 | use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClassMagicGet; |
@@ -99,29 +98,6 @@ public function testGetValue($objectOrArray, $path, $value) |
99 | 98 | $this->assertSame($value, $this->propertyAccessor->getValue($objectOrArray, $path)); |
100 | 99 | } |
101 | 100 |
|
102 | | - /** |
103 | | - * Test get dynamic value from object is other than \stdClass instance. |
104 | | - */ |
105 | | - public function testGetDynamicValue() |
106 | | - { |
107 | | - $value = 'dynamicPropertyValue'; |
108 | | - $path = 'dynamicProperty'; |
109 | | - $object = new TestClassDynamicProperty($value); |
110 | | - |
111 | | - $this->assertSame($value, $this->propertyAccessor->getValue($object, $path)); |
112 | | - } |
113 | | - |
114 | | - /** |
115 | | - * Ensure exact exception with message was thrown on access to non-public property. |
116 | | - */ |
117 | | - public function testGetInaccessibleProperty() |
118 | | - { |
119 | | - $this->expectException('Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException'); |
120 | | - $this->expectExceptionMessage(sprintf('Can\'t read protected or private property "%s" in class "%s".', 'protectedProperty', TestClass::class)); |
121 | | - |
122 | | - $this->propertyAccessor->getValue(new TestClass('Bernhard'), 'protectedProperty'); |
123 | | - } |
124 | | - |
125 | 101 | /** |
126 | 102 | * @dataProvider getPathsWithMissingProperty |
127 | 103 | */ |
|
0 commit comments