for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* Wikipedia Account Creation Assistance tool *
* *
* All code in this file is released into the public domain by the ACC *
* Development Team. Please see team.json for a list of contributors. *
******************************************************************************/
namespace Waca\Providers\GlobalState;
/**
* Class TestStateProvider
*
* This class is only to be used for testing sets of the global state variables. For everything else, please use PHPUnit
* mocks as normal.
* @package Waca\Tests\Utility
*/
class FakeGlobalStateProvider extends GlobalStateProvider implements IGlobalStateProvider
{
var $server = array();
$server
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
class A { var $property; }
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.
var $get = array();
$get
var $post = array();
$post
var $session = array();
$session
public function &getServerSuperGlobal()
return $this->server;
}
public function &getGetSuperGlobal()
return $this->get;
public function &getPostSuperGlobal()
return $this->post;
public function &getSessionSuperGlobal()
return $this->session;
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.