/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class FormRegistryTest extends TestCase
{ private FormRegistry
$registry;
private TestExtension
$extension1;
private TestExtension
$extension2;
protected function setUp(): void
{ $this->extension1 =
new TestExtension(new NullFormTypeGuesser());
$this->extension2 =
new TestExtension(new NullFormTypeGuesser());
$this->registry =
new FormRegistry([ $this->extension1,
$this->extension2,
],
new ResolvedFormTypeFactory());
} public function testGetTypeFromExtension() { $type =
new FooType();
$this->extension2->
addType($type);