svn: /phd/trunk/tests/php/ data/faq001.xml faq001.phpt

From: Date: Wed, 12 Aug 2009 14:41:49 +0000
Subject: svn: /phd/trunk/tests/php/ data/faq001.xml faq001.phpt
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4654@lists.php.net to get a copy of this message
moacir Wed, 12 Aug 2009 14:41:49 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287162 Log: testing FAQs Changed paths: A phd/trunk/tests/php/data/faq001.xml A phd/trunk/tests/php/faq001.phpt Added: phd/trunk/tests/php/data/faq001.xml =================================================================== --- phd/trunk/tests/php/data/faq001.xml (rev 0) +++ phd/trunk/tests/php/data/faq001.xml 2009-08-12 14:41:49 UTC (rev 287162) @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<chapter xmlns="http://docbook.org/ns/docbook" xml:id="faq.001"> + <title>FAQ Test 001</title> + <titleabbrev>FAQ Test 001</titleabbrev> + + <para> + Testing FAQs + </para> + + <qandaset> + <qandaentry xml:id="faq.001.01"> + <question> + <para> + Simple test question 01 + </para> + </question> + <answer> + <para> + Simple test answer 01 + </para> + </answer> + </qandaentry> + + <qandaentry xml:id="faq.001.02"> + <question> + <para> + Simple test question 02 + </para> + </question> + <answer> + <para> + Simple test answer 02 + </para> + </answer> + </qandaentry> + + <qandaentry xml:id="faq.001.03"> + <question> + <para> + Simple test question 03 + </para> + </question> + <answer> + <para> + Simple test answer 03 + </para> + </answer> + </qandaentry> + + <qandaentry xml:id="faq.001.04"> + <question> + <para> + Simple test question 04 + </para> + </question> + <answer> + <para> + Simple test answer 04 + </para> + </answer> + </qandaentry> + + <qandaentry xml:id="faq.001.05"> + <question> + <para> + Simple test question 05 + </para> + </question> + <answer> + <para> + Simple test answer 05 + </para> + </answer> + </qandaentry> + + </qandaset> +</chapter> + Added: phd/trunk/tests/php/faq001.phpt =================================================================== --- phd/trunk/tests/php/faq001.phpt (rev 0) +++ phd/trunk/tests/php/faq001.phpt 2009-08-12 14:41:49 UTC (rev 287162) @@ -0,0 +1,129 @@ +--TEST-- +Testing a simple FAQ +--FILE-- +<?php +namespace phpdotnet\phd; + +require_once __DIR__ . "/../setup.php"; +require_once __DIR__ . "/../TestRender.php"; +require_once __DIR__ . "/TestChunkedXHTML.php"; + +$formatclass = "TestChunkedXHTML"; +$xml_file = __DIR__ . "/data/faq001.xml"; + +$opts = array( + "index" => false, + "xml_root" => dirname($xml_file), + "xml_file" => $xml_file, + "output_dir" => __DIR__ . "/output/", +); + +$extra = array( + "lang_dir" => __DIR__ . "/../../phpdotnet/phd/data/langs/", + "phpweb_version_filename" => dirname($xml_file) . '/version.xml', + "phpweb_acronym_filename" => dirname($xml_file) . '/acronyms.xml', +); + +$render = new TestRender($formatclass, $opts, $extra); +$render->run(); +?> +--EXPECT-- +Filename: faq.001.html +Content: +<div id="faq.001" class="chapter"> + <h1>FAQ Test 001</h1> + + + + <p class="para"> + Testing FAQs + </p> + + <div class="qandaset"><ol class="qandaset_questions"><li><a href="#faq.001.01"> + + Simple test question 01 + + </a></li><li><a href="#faq.001.02"> + + Simple test question 02 + + </a></li><li><a href="#faq.001.03"> + + Simple test question 03 + + </a></li><li><a href="#faq.001.04"> + + Simple test question 04 + + </a></li><li><a href="#faq.001.05"> + + Simple test question 05 + + </a></li></ol></div> + <dl class="qandaentry" id="faq.001.01" name="faq.001.01"> + <dt><strong> + + Simple test question 01 + + </strong></dt> + <dd class="answer"> + <p class="para"> + Simple test answer 01 + </p> + </dd> + </dl> + + <dl class="qandaentry" id="faq.001.02" name="faq.001.02"> + <dt><strong> + + Simple test question 02 + + </strong></dt> + <dd class="answer"> + <p class="para"> + Simple test answer 02 + </p> + </dd> + </dl> + + <dl class="qandaentry" id="faq.001.03" name="faq.001.03"> + <dt><strong> + + Simple test question 03 + + </strong></dt> + <dd class="answer"> + <p class="para"> + Simple test answer 03 + </p> + </dd> + </dl> + + <dl class="qandaentry" id="faq.001.04" name="faq.001.04"> + <dt><strong> + + Simple test question 04 + + </strong></dt> + <dd class="answer"> + <p class="para"> + Simple test answer 04 + </p> + </dd> + </dl> + + <dl class="qandaentry" id="faq.001.05" name="faq.001.05"> + <dt><strong> + + Simple test question 05 + + </strong></dt> + <dd class="answer"> + <p class="para"> + Simple test answer 05 + </p> + </dd> + </dl> + + +</div>

« previous php.doc.cvs (#4654) next »