BrowscapPHP\Helper\Converter::storeVersion PHP Метод

storeVersion() публичный Метод

stores the version of the ini file into cache
public storeVersion ( ) : Converter
Результат Converter
    public function storeVersion()
    {
        $this->cache->setItem('browscap.version', $this->iniVersion, false);
        return $this;
    }

Usage Example

Пример #1
0
    /**
     *
     */
    public function testGetIniVersion()
    {
        $file = $this->getMock('\\BrowscapPHP\\Helper\\Filesystem', array('exists'), array(), '', false);
        $file->expects(self::never())->method('exists')->will(self::returnValue(false));
        $this->object->setFilesystem($file);
        $content = ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Browscap Version

[GJK_Browscap_Version]
Version=5031
Released=Mon, 30 Jun 2014 17:55:58 +0200
Format=ASP
Type=';
        self::assertSame(5031, $this->object->getIniVersion($content));
        self::assertSame($this->object, $this->object->storeVersion());
    }
All Usage Examples Of BrowscapPHP\Helper\Converter::storeVersion