run() public method

Run widget without magic method.
public run ( ) : mixed
return mixed
 public function testItCanCacheWidgets()
 {
     $output = $this->factory->run('testCachedWidget', ['foo' => 'bar']);
     $key = 'arrilot.widgets.' . serialize(['testCachedWidget', ['foo' => 'bar']]);
     $widget = new TestCachedWidget();
     $this->assertEquals('Cached output. Key: ' . $key . ', minutes: ' . $widget->cacheTime, $output);
 }