Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Testbench\TComponent

Martin Zlámal edited this page Feb 13, 2016 · 3 revisions

Testing UI\Control render

See: https://tester.nette.org/#toc-assert-match

use \Testbench\TComponent;
public function testComponentRender()
{
	$control = new \Component;
	$this->checkRenderOutput($control, '<strong>OK%A%'); //match string
	$this->checkRenderOutput($control, __DIR__ . '/Component.expected'); //match file content
}
Clone this wiki locally