* UnitTest/InstallerTest.php
public function setUp()
{
- global $rig;
-
- $rig = $this;
- BSApp::$input = new BSInput();
+ $this->input = BSApp::$input = new BSInput();
+ TestInstallerFixture::$rig = $this;
}
private function _loadClass()
class TestInstallerFixture extends BSInstaller
{
- public $rig;
+ public static $rig;
protected function _pageTitle()
{
public function step1()
{
- global $rig;
- $rig->stepCheck(1);
+ self::$rig->stepCheck(1);
}
public function step2()
{
- global $rig;
- $rig->stepCheck(2);
+ self::$rig->stepCheck(2);
}
}