Fixed reference to renamed methods and properties

This commit is contained in:
Alex Bilbie 2012-08-27 16:02:35 +01:00
parent c92dc8f759
commit b485f15e83

View File

@ -369,10 +369,10 @@ class Authentication_Server_test extends PHPUnit_Framework_TestCase {
function test_noRegisteredDatabaseAbstractor()
{
$reflector = new ReflectionClass($this->oauth);
$method = $reflector->getMethod('dbcall');
$method = $reflector->getMethod('_dbCall');
$method->setAccessible(true);
$dbAbstractor = $reflector->getProperty('db');
$dbAbstractor = $reflector->getProperty('_db');
$dbAbstractor->setAccessible(true);
$dbAbstractor->setValue($this->oauth, null);
@ -389,7 +389,7 @@ class Authentication_Server_test extends PHPUnit_Framework_TestCase {
$this->oauth->registerDbAbstractor($fake);
$reflector = new ReflectionClass($this->oauth);
$method = $reflector->getMethod('dbcall');
$method = $reflector->getMethod('_dbCall');
$method->setAccessible(true);
$result = $method->invoke($this->oauth);