should actually be changed this way:

```php
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
```