Rename \Combodo\iTop\Test\UnitTest\ItopTestCase::InvokeInvisible* to InvokeNonPublic*

This commit is contained in:
Pierre Goiffon
2021-02-04 09:41:56 +01:00
parent e06996a2e4
commit a5894c1a4c
2 changed files with 4 additions and 4 deletions

View File

@@ -97,9 +97,9 @@ class ItopTestCase extends TestCase
return $sId;
}
public function InvokeInvisibleStaticMethod($sObjectClass, $sMethodName, $aArgs)
public function InvokeNonPublicStaticMethod($sObjectClass, $sMethodName, $aArgs)
{
return $this->InvokeInvisibleMethod($sObjectClass, $sMethodName, null, $aArgs);
return $this->InvokeNonPublicMethod($sObjectClass, $sMethodName, null, $aArgs);
}
/**
@@ -112,7 +112,7 @@ class ItopTestCase extends TestCase
*
* @throws \ReflectionException
*/
public function InvokeInvisibleMethod($sObjectClass, $sMethodName, $oObject, $aArgs)
public function InvokeNonPublicMethod($sObjectClass, $sMethodName, $oObject, $aArgs)
{
$class = new \ReflectionClass($sObjectClass);
$method = $class->getMethod($sMethodName);

View File

@@ -35,7 +35,7 @@ class DBSearchUpdateRealiasingMapTest extends ItopDataTestCase
{
$oObject = new DBObjectSearch('Organization');
$aArgs = [&$aRealiasingMap, $aAliasTranslation];
$this->InvokeInvisibleMethod(DBObjectSearch::class, 'UpdateRealiasingMap', $oObject, $aArgs);
$this->InvokeNonPublicMethod(DBObjectSearch::class, 'UpdateRealiasingMap', $oObject, $aArgs);
$this->assertEquals($aExpectedRealiasingMap, $aRealiasingMap);
}