Nette\InvalidArgumentException: Component name must be non-empty alphanumeric string, 'class@anonymous /var/www/html/workshop-testbench2/tests/HomepagePresenter.phpt0x7fca3face366' given.
public function testComponentRender()
{
$control = new class extends \Nette\Application\UI\Control
{
public function render()
{
echo 'ok';
}
};
//$this->attachToPresenter($control, 'custom-name'); <- custom name needed
$this->checkRenderOutput($control, 'ok');
}
PHP 7 only!