Ported from PHPUnit to Nette\Tester.