assertEquals($expectedWikiText, $actualWikiText, $msg); } $this->assertEquals($expectedValidationErrors, $actualValidationErrors, $msg); } public function test_field_date_render() { $formSyntax = 'date "dateLabel"'; $instr = p_get_instructions("
\n$formSyntax\n
"); $actualHTML = p_render('xhtml', $instr, $info); $expectedFieldHTML = ''; $expectedHTML = self::FORM_PREFIX_HTML . "\n$expectedFieldHTML\n" . self::FORM_SUFFIX_HTML; $this->assertEquals(trim($expectedHTML), trim($actualHTML)); } }