function testAddFromAnnotationEvents() { $this->expectOutputString("123"); $app = new WebApplication(__DIR__ . "/app", "/"); $form = new Form(); $form->addFromAnnotations(new ManuallyAddFormElementTest()); $this->assertTrue($form->confirm(["manual" => 123])); }