Rename App Methods

- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
This commit is contained in:
Philipp Holzer 2018-10-09 19:58:58 +02:00
commit 5a02e39a65
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
94 changed files with 481 additions and 338 deletions

View file

@ -75,9 +75,8 @@ class ApiTest extends DatabaseTest
{
parent::tearDown();
$app = get_app();
$app->argc = 1;
$app->argv = ['home'];
$this->app->argc = 1;
$this->app->argv = ['home'];
}
/**

View file

@ -5,6 +5,7 @@
namespace Friendica\Test;
use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Config;
use Friendica\Database\DBA;
@ -18,7 +19,12 @@ use PHPUnit_Extensions_Database_DB_IDatabaseConnection;
*/
abstract class DatabaseTest extends TestCase
{
public function setUp()
/**
* @var App The Friendica App
*/
protected $app;
protected function setUp()
{
// Reusable App object
$this->app = BaseObject::getApp();

View file

@ -11,7 +11,7 @@ abstract class MemoryCacheTest extends CacheTest
*/
protected $instance;
function setUp()
protected function setUp()
{
parent::setUp();
if (!($this->instance instanceof IMemoryCacheDriver)) {