22
33namespace yii2mod \slider \tests ;
44
5- use yii \helpers \ArrayHelper ;
65use Yii ;
6+ use yii \helpers \ArrayHelper ;
77use yii \helpers \FileHelper ;
88
99/**
1010 * This is the base class for all yii framework unit tests.
1111 */
12- class TestCase extends \PHPUnit_Framework_TestCase
12+ class TestCase extends \PHPUnit \ Framework \TestCase
1313{
1414 protected function setUp ()
1515 {
@@ -27,6 +27,7 @@ protected function tearDown()
2727 /**
2828 * Populates Yii::$app with a new application
2929 * The application will be destroyed on tearDown() automatically.
30+ *
3031 * @param array $config The application configuration, if needed
3132 * @param string $appClass name of the application class to create
3233 */
@@ -39,7 +40,7 @@ protected function mockApplication($config = [], $appClass = '\yii\web\Applicati
3940 'components ' => [
4041 'request ' => [
4142 'hostInfo ' => 'http://domain.com ' ,
42- 'scriptUrl ' => 'index.php '
43+ 'scriptUrl ' => 'index.php ' ,
4344 ],
4445 'assetManager ' => [
4546 'basePath ' => $ this ->getTestFilePath (),
@@ -66,10 +67,11 @@ protected function destroyApplication()
6667
6768 /**
6869 * Returns the test file path.
69- * @return string file path.
70+ *
71+ * @return string file path
7072 */
7173 protected function getTestFilePath ()
7274 {
7375 return dirname (__DIR__ ) . '/tests/runtime ' . DIRECTORY_SEPARATOR . getmypid ();
7476 }
75- }
77+ }
0 commit comments