Removed leading underscores from ReflectionProperty variables in test case

This commit is contained in:
Stephen Young 2013-12-07 12:10:03 -05:00
parent f0036b3ebc
commit 8645e05ab1

View file

@ -62,9 +62,9 @@ class CakeFixtureManagerTest extends CakeTestCase {
$fixtureManager = $this->fixtureManager; $fixtureManager = $this->fixtureManager;
$fixtureManagerReflection = new ReflectionClass($fixtureManager); $fixtureManagerReflection = new ReflectionClass($fixtureManager);
$_loadedProperty = $fixtureManagerReflection->getProperty('_loaded'); $loadedProperty = $fixtureManagerReflection->getProperty('_loaded');
$_loadedProperty->setAccessible(true); $loadedProperty->setAccessible(true);
$_loadedProperty->setValue($fixtureManager, array('core.uuid' => $MockFixture)); $loadedProperty->setValue($fixtureManager, array('core.uuid' => $MockFixture));
$TestCase = $this->getMock('CakeTestCase'); $TestCase = $this->getMock('CakeTestCase');
$TestCase->fixtures = array('core.uuid'); $TestCase->fixtures = array('core.uuid');
@ -89,9 +89,9 @@ class CakeFixtureManagerTest extends CakeTestCase {
$fixtureManager = $this->fixtureManager; $fixtureManager = $this->fixtureManager;
$fixtureManagerReflection = new ReflectionClass($fixtureManager); $fixtureManagerReflection = new ReflectionClass($fixtureManager);
$_fixtureMapProperty = $fixtureManagerReflection->getProperty('_fixtureMap'); $fixtureMapProperty = $fixtureManagerReflection->getProperty('_fixtureMap');
$_fixtureMapProperty->setAccessible(true); $fixtureMapProperty->setAccessible(true);
$_fixtureMapProperty->setValue($fixtureManager, array('UuidFixture' => $MockFixture)); $fixtureMapProperty->setValue($fixtureManager, array('UuidFixture' => $MockFixture));
$dboMethods = array_diff(get_class_methods('DboSource'), array('enabled')); $dboMethods = array_diff(get_class_methods('DboSource'), array('enabled'));
$dboMethods[] = 'connect'; $dboMethods[] = 'connect';