Beispiel #1
0
		$user->page = session::extract_current_page($phpbb_root_path);
	}

	protected function tearDown()
	{
		global $user;
		$user = NULL;
	}

	public static function main()
	{
		PHPUnit_TextUI_TestRunner::run(self::suite());
	}

	public static function suite()
	{
		// I bet there is a better method calling this... :)
		$suite = new phpbb_security_all_tests('phpBB Security Fixes');

		$suite->addTestSuite('phpbb_security_extract_current_page_test');
		$suite->addTestSuite('phpbb_security_redirect_test');

		return $suite;
	}
}

if (PHPUnit_MAIN_METHOD == 'phpbb_security_all_tests::main')
{
	phpbb_security_all_tests::main();
}