19declare(strict_types=1);
21require_once(__DIR__ .
"/../../../../../../vendor/composer/vendor/autoload.php");
22require_once(__DIR__ .
"/../../Base.php");
39 public function counter(): I\Component\Counter\Factory
41 return new I\Component\Counter\Factory();
43 public function legacy(): I\Component\Legacy\Factory
45 return new I\Component\Legacy\Factory(
new I\
Component\SignalGenerator());
52 $group_mock = $this->createMock(Group::class);
53 $group_mock->method(
'withNameFrom')->willReturnSelf();
55 $factory_mock = $this->createMock(FieldFactory::class);
56 $factory_mock->method(
'group')->willReturn($group_mock);
58 return new I\Component\Modal\Factory(
60 $this->createMock(
I\
Component\Modal\InterruptiveItem\Factory::class),
67 return new I\Component\Button\Factory();
77 $html = parent::normalizeHTML($html);
79 return str_replace([
'×',
"\t"], [
'',
''], $html);
Provides common functionality for UI tests.
Base class for modal tests.
normalizeHTML(string $html)