mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
36 lines
824 B
PHP
36 lines
824 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2010 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
use Alchemy\Phrasea\Core\Version;
|
|
|
|
/**
|
|
*
|
|
* @package
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
class VersionTest extends \PhraseanetPHPUnitAbstract
|
|
{
|
|
|
|
public function testGetNumber()
|
|
{
|
|
$this->assertTrue(is_string(Version::getNumber()));
|
|
$this->assertRegExp('/[\d]{1}\.[\d]{1,2}\.[\d]{1,2}/', Version::getNumber());
|
|
}
|
|
|
|
public function testGetName()
|
|
{
|
|
$this->assertTrue(is_string(Version::getName()));
|
|
$this->assertTrue(strlen(Version::getName()) > 3);
|
|
}
|
|
} |