BrowscapPHP\Helper\IniLoader::getRemoteIniUrl PHP Method

getRemoteIniUrl() public method

returns the of the remote location for updating the ini file
public getRemoteIniUrl ( ) : string
return string
    public function getRemoteIniUrl()
    {
        return str_replace('%q', $this->remoteFilename, $this->remoteIniUrl);
    }

Usage Example

Example #1
0
 /**
  *
  */
 public function testGetRemoteIniUrl()
 {
     $this->object->setRemoteFilename(IniLoader::PHP_INI_LITE);
     self::assertSame('http://browscap.org/stream?q=Lite_PHP_BrowscapINI', $this->object->getRemoteIniUrl());
     $this->object->setRemoteFilename(IniLoader::PHP_INI);
     self::assertSame('http://browscap.org/stream?q=PHP_BrowscapINI', $this->object->getRemoteIniUrl());
     $this->object->setRemoteFilename(IniLoader::PHP_INI_FULL);
     self::assertSame('http://browscap.org/stream?q=Full_PHP_BrowscapINI', $this->object->getRemoteIniUrl());
 }