public function testMessages() { $form = new \Foundation\Form(); $this->assertEmpty($form->getErrorMessages()); $text = 'Some random message' . uniqid(); $form->addErrorMessage($text); $this->assertTrue(in_array($text, $form->getErrorMessages())); }