PhpBrew\Version::getCanonicalizedVersionName PHP Méthode

getCanonicalizedVersionName() public méthode

public getCanonicalizedVersionName ( ) : string
Résultat string the version string, php-5.3.29, php-5.4.2 without prefix
    public function getCanonicalizedVersionName()
    {
        return $this->dist . '-' . $this->version;
    }

Usage Example

Exemple #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());
 }