Returns the full brand name for the given short name
public static getFullName ( string $brandId ) : string | ||
$brandId | string | short brand name |
Résultat | string |
/** * Returns the full device brand name extracted from the parsed UA * * @see self::$deviceBrand for available device brands * * @return string */ public function getBrandName() { return DeviceParserAbstract::getFullName($this->getBrand()); }
public function testGetFullName() { $this->assertEquals('', DeviceParserAbstract::getFullName('Invalid')); $this->assertEquals('Unknown', DeviceParserAbstract::getFullName('XX')); $this->assertEquals('Google', DeviceParserAbstract::getFullName('GO')); }