yiisoft /
yii-widgets
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Yiisoft\Yii\Widgets\Tests\Support; |
||
| 6 | |||
| 7 | use Yiisoft\Aliases\Aliases; |
||
| 8 | use Yiisoft\Cache\Cache; |
||
| 9 | use Yiisoft\Cache\CacheInterface; |
||
| 10 | use Yiisoft\Test\Support\Container\SimpleContainer; |
||
| 11 | use Yiisoft\Test\Support\EventDispatcher\SimpleEventDispatcher; |
||
| 12 | use Yiisoft\Test\Support\SimpleCache\MemorySimpleCache; |
||
| 13 | use Yiisoft\View\WebView; |
||
| 14 | use Yiisoft\Widget\WidgetFactory; |
||
| 15 | |||
| 16 | trait TestTrait |
||
| 17 | { |
||
| 18 | private CacheInterface $cache; |
||
| 19 | private WebView $webView; |
||
| 20 | |||
| 21 | protected function setUp(): void |
||
| 22 | { |
||
| 23 | parent::setUp(); |
||
| 24 | |||
| 25 | $container = new SimpleContainer( |
||
| 26 | [ |
||
| 27 | Aliases::class => new Aliases(['@public' => __DIR__]), |
||
| 28 | CacheInterface::class => new Cache(new MemorySimpleCache()), |
||
| 29 | WebView::class => new WebView(__DIR__ . '/public/view', new SimpleEventDispatcher()), |
||
| 30 | ] |
||
| 31 | ); |
||
| 32 | |||
| 33 | WidgetFactory::initialize($container, []); |
||
| 34 | |||
| 35 | $this->cache = $container->get(CacheInterface::class); |
||
| 36 | $this->webView = $container->get(WebView::class); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | namespace Yiisoft\Html; |
||
| 41 | |||
| 42 | function hrtime(bool $getAsNumber = false): void |
||
|
0 ignored issues
–
show
|
|||
| 43 | { |
||
| 44 | } |
||
| 45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.