Skip to content

Commit

Permalink
gg
Browse files Browse the repository at this point in the history
  • Loading branch information
kaviththiranga committed Dec 14, 2012
1 parent 0e3cddb commit 8a90688
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 225 deletions.
33 changes: 1 addition & 32 deletions tests/suites/legacy/request/JRequestGetMethodTest.php
@@ -1,43 +1,13 @@
<?php <?php
/** /**
* @package Joomla.UnitTest * @package Joomla.UnitTest
<<<<<<< HEAD
* @subpackage Environment
=======
* @subpackage Request * @subpackage Request
>>>>>>> upstream/master
* *
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE * @license GNU General Public License version 2 or later; see LICENSE
*/ */


<<<<<<< HEAD
/**
* A unit test class for JRequest
*/
class JRequestTest_GetMethod extends PHPUnit_Framework_TestCase
{

/**
* Clear the cache
*/
function setUp() {
// Make sure the request hash is clean.
$GLOBALS['_JREQUEST'] = array();
}

/**
* @covers JRequest::getMethod
*/
function testGetMethod()
{
$_SERVER['REQUEST_METHOD'] = 'post';
$this -> assertEquals('POST', JRequest::getMethod());
$_SERVER['REQUEST_METHOD'] = 'get';
$this -> assertEquals('GET', JRequest::getMethod());
}

=======
require_once __DIR__ . '/JRequest-helper-dataset.php'; require_once __DIR__ . '/JRequest-helper-dataset.php';


/** /**
Expand Down Expand Up @@ -189,5 +159,4 @@ public function testSet()


$this->assertSame($get, $_GET); $this->assertSame($get, $_GET);
} }
>>>>>>> upstream/master
} }
193 changes: 0 additions & 193 deletions tests/suites/legacy/request/JRequestGetmethodTest.php

This file was deleted.

0 comments on commit 8a90688

Please sign in to comment.