Skip to content

Commit

Permalink
Merge pull request #31 from Paladin/JVersion
Browse files Browse the repository at this point in the history
Cleaned up After JVersion Rename
  • Loading branch information
eddieajau committed Jun 7, 2011
2 parents 6b60f72 + 7216893 commit 0c62858
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
* @license GNU General Public License version 2 or later; see LICENSE
*/

include_once JPATH_PLATFORM.'/version.php';
include_once JPATH_PLATFORM.'/platform.php';

/**
* JVersionTest
* JPlatformTest
*
* Test class for JVersion.
* Test class for JPlatform.
* Generated by PHPUnit on 2009-10-08 at 21:36:41.
*
* @package Joomla.UnitTest
* @subpackage Utilities
*/
class JVersionTest extends PHPUnit_Framework_TestCase
class JPlatformTest extends PHPUnit_Framework_TestCase
{
/**
* @var JVersion
* @var JPlatform
*/
protected $object;
protected $PRODUCT = 'Joomla!';
Expand Down Expand Up @@ -66,7 +66,7 @@ public function testGetLongVersion()
$expected = 'Joomla Platform 11.1.0 Dev [ Ember ] 15-Apr-2011 00:00 GMT';
$this->assertEquals(
$expected,
JVersion::getLongVersion(),
JPlatform::getLongVersion(),
'Should get the correct Long Version'
);
}
Expand All @@ -81,7 +81,7 @@ public function testGetShortVersion()
$expected = '11.1.0';
$this->assertEquals(
$expected,
JVersion::getShortVersion(),
JPlatform::getShortVersion(),
'Should get the correct Short Version'
);
}
Expand Down Expand Up @@ -110,7 +110,7 @@ function casesCompatibility()
'Should not be compatible with null',
),
'itself' => array(
JVERSION,
JPLATFORM,
true,
'Should be compatible with itself',
),
Expand Down Expand Up @@ -147,7 +147,7 @@ public function testIsCompatible( $input, $expect, $message )
{
$this->assertThat(
$expect,
$this->equalTo(JVersion::isCompatible($input)),
$this->equalTo(JPlatform::isCompatible($input)),
$message
);
}
Expand All @@ -159,7 +159,7 @@ public function testIsCompatible( $input, $expect, $message )
*/
public function testSetState()
{
if (method_exists('JVersion', '__set_state'))
if (method_exists('JPlatform', '__set_state'))
{
$testData = array(
'PRODUCT' => 'Joomla!',
Expand All @@ -185,7 +185,7 @@ public function testSetState()
}
$this->assertThat(
$testInstance,
$this->isInstanceOf('JVersion')
$this->isInstanceOf('JPlatform')
);
}
}
Expand Down

0 comments on commit 0c62858

Please sign in to comment.