diff --git a/tests/suite/joomla/JVersionTest.php b/tests/suite/joomla/JPlatformTest.php similarity index 90% rename from tests/suite/joomla/JVersionTest.php rename to tests/suite/joomla/JPlatformTest.php index 581c8ed70aa5d..896dda54b3ca4 100644 --- a/tests/suite/joomla/JVersionTest.php +++ b/tests/suite/joomla/JPlatformTest.php @@ -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!'; @@ -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' ); } @@ -81,7 +81,7 @@ public function testGetShortVersion() $expected = '11.1.0'; $this->assertEquals( $expected, - JVersion::getShortVersion(), + JPlatform::getShortVersion(), 'Should get the correct Short Version' ); } @@ -110,7 +110,7 @@ function casesCompatibility() 'Should not be compatible with null', ), 'itself' => array( - JVERSION, + JPLATFORM, true, 'Should be compatible with itself', ), @@ -147,7 +147,7 @@ public function testIsCompatible( $input, $expect, $message ) { $this->assertThat( $expect, - $this->equalTo(JVersion::isCompatible($input)), + $this->equalTo(JPlatform::isCompatible($input)), $message ); } @@ -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!', @@ -185,7 +185,7 @@ public function testSetState() } $this->assertThat( $testInstance, - $this->isInstanceOf('JVersion') + $this->isInstanceOf('JPlatform') ); } }