mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 20:21:19 +08:00
27 lines
407 B
PHP
27 lines
407 B
PHP
<?php
|
|
namespace yiiunit\framework;
|
|
|
|
use yiiunit\TestCase;
|
|
|
|
/**
|
|
* YiiBaseTest
|
|
*/
|
|
class YiiBaseTest extends TestCase
|
|
{
|
|
public function testAlias()
|
|
{
|
|
|
|
}
|
|
|
|
public function testGetVersion()
|
|
{
|
|
echo \Yii::getVersion();
|
|
$this->assertTrue((boolean)preg_match('~\d+\.\d+(?:\.\d+)?(?:-\w+)?~', \Yii::getVersion()));
|
|
}
|
|
|
|
public function testPowered()
|
|
{
|
|
$this->assertTrue(is_string(\Yii::powered()));
|
|
}
|
|
}
|