{{VARIABLE_NAME}} = new {{FORM_NAME}}Form(); } /** * tearDown method */ protected function tearDown(): void { unset($this->{{VARIABLE_NAME}}); parent::tearDown(); } /** * Test validationDefault with valid data */ public function testValidationSuccess(): void { // Arrange $data = [ 'email' => 'user@example.com', 'message' => 'Hello World', ]; // Act $isValid = $this->{{VARIABLE_NAME}}->validate($data); // Assert $this->assertTrue($isValid); $this->assertEmpty($this->{{VARIABLE_NAME}}->getErrors()); } /** * Test execute method */ public function testExecuteSuccess(): void { // Arrange $data = [ 'email' => 'user@example.com', 'message' => 'Hello World', ]; // Act $result = $this->{{VARIABLE_NAME}}->execute($data); // Assert $this->assertTrue($result); } }