Skip to content

Commit 0a76034

Browse files
committed
9764: exception message is wrong and misleading in findAccessorMethodName() of Magento\Framework\Reflection\NameFinder
1 parent ba47d85 commit 0a76034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/Reflection/Test/Unit/NameFinderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function setUp()
2727

2828
public function testGetSetterMethodName()
2929
{
30-
$class = new ClassReflection("\\Magento\\Framework\\Reflection\\Test\\Unit\\DataObject");
30+
$class = new ClassReflection(\Magento\Framework\Reflection\Test\Unit\DataObject::class);
3131
$setterName = $this->nameFinder->getSetterMethodName($class, 'AttrName');
3232
$this->assertEquals("setAttrName", $setterName);
3333

@@ -43,7 +43,7 @@ public function testGetSetterMethodName()
4343
*/
4444
public function testGetSetterMethodNameInvalidAttribute()
4545
{
46-
$class = new ClassReflection("\\Magento\\Framework\\Reflection\\Test\\Unit\\DataObject");
46+
$class = new ClassReflection(\Magento\Framework\Reflection\Test\Unit\DataObject::class);
4747
$this->nameFinder->getSetterMethodName($class, 'InvalidAttribute');
4848
}
4949

@@ -55,7 +55,7 @@ public function testGetSetterMethodNameInvalidAttribute()
5555
*/
5656
public function testGetSetterMethodNameWrongCamelCasedAttribute()
5757
{
58-
$class = new ClassReflection("\\Magento\\Framework\\Reflection\\Test\\Unit\\DataObject");
58+
$class = new ClassReflection(\Magento\Framework\Reflection\Test\Unit\DataObject::class);
5959
$this->nameFinder->getSetterMethodName($class, 'ActivE');
6060
}
6161

0 commit comments

Comments
 (0)