getCanonicalizedVersionName() public method

public getCanonicalizedVersionName ( ) : string
return string the version string, php-5.3.29, php-5.4.2 without prefix
Example #1
0
 public function testVersionConstructor()
 {
     $versionA = new Version('php-5.4.22');
     $versionB = new Version('5.4.22', 'php');
     $this->assertEquals('php-5.4.22', $versionA->getCanonicalizedVersionName());
     $this->assertEquals('php-5.4.22', $versionB->getCanonicalizedVersionName());
     $this->assertEquals('5.4.22', $versionA->getVersion());
     $this->assertEquals('5.4.22', $versionB->getVersion());
     $this->assertEquals($versionA->__toString(), $versionB->__toString());
 }