public function testOtherParameter() { $message = array('success', 'This is a test'); $output = $this->view->messagesFormatter($message, 'p', 'other'); $this->assertContains($message[1], $output); $this->assertSame('<p class="' . $message[0] . '">' . $message[1] . '</p>', $output); $message = array('warning', 'This is a test'); $output = $this->view->messagesFormatter($message, 'span', 'other'); $this->assertContains($message[1], $output); $this->assertSame('<span class="' . $message[0] . '">' . $message[1] . '</span>', $output); }