cvs: peardoc /ja/package mail.xml /ja/package/mail/mail intro.xml /ja/package/php phpunit.xml /ja/package/php/phpdoc usingtool.xml
/ja/package/php/phpunit intro.xml run.xml testcase.xml

From: Date: Wed, 22 Oct 2003 15:18:33 +0000
Subject: cvs: peardoc /ja/package mail.xml /ja/package/mail/mail intro.xml /ja/package/php phpunit.xml /ja/package/php/phpdoc usingtool.xml
/ja/package/php/phpunit intro.xml run.xml testcase.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1719@lists.php.net to get a copy of this message
hirokawa Wed Oct 22 11:18:33 2003 EDT Modified files: /peardoc/ja/package mail.xml /peardoc/ja/package/mail/mail intro.xml /peardoc/ja/package/php phpunit.xml /peardoc/ja/package/php/phpdoc usingtool.xml /peardoc/ja/package/php/phpunit intro.xml run.xml testcase.xml Log: fixed compilation problem.

Index: peardoc/ja/package/mail.xml diff -u peardoc/ja/package/mail.xml:1.1 peardoc/ja/package/mail.xml:1.2 --- peardoc/ja/package/mail.xml:1.1 Tue Oct 14 10:28:28 2003 +++ peardoc/ja/package/mail.xml Wed Oct 22 11:18:29 2003 @@ -1,5 +1,6 @@ <?xml encoding="utf-8"?> <!-- sync: 1.2 --> +<!-- $Revision: 1.2 $ --> <chapter id="package.mail"> <title>メール</title> Index: peardoc/ja/package/mail/mail/intro.xml diff -u peardoc/ja/package/mail/mail/intro.xml:1.2 peardoc/ja/package/mail/mail/intro.xml:1.3 --- peardoc/ja/package/mail/mail/intro.xml:1.2 Sat Oct 18 11:46:56 2003 +++ peardoc/ja/package/mail/mail/intro.xml Wed Oct 22 11:18:30 2003 @@ -1,63 +1,64 @@ -<!-- $Revision: 1.2 $ --> -<!-- Sync: 1.1.1.1 --> +<?xml encoding="utf-8"?> +<!-- $Revision: 1.3 $ --> +<!-- Sync: 1.1 --> <refentry id="package.mail.mail.intro"> - <refnamediv> - <refname>導入</refname> - <refpurpose>メールの送信方法とメーラーバックエンド</refpurpose> - </refnamediv> - <refsect1 id="package.mail.mail.intro.howto"> - <title>メールの送信方法</title> - <para> + <refnamediv> + <refname>導入</refname> + <refpurpose>メールの送信方法とメーラーのバックエンド</refpurpose> + </refnamediv> + <refsect1 id="package.mail.mail.intro.howto"> + <title>メールの送信方法</title> + <para> <classname>Mail</classname>は、 メールを送信するための異なる形式のバックエンドをサポートします。 このため、メールを送信するために2段階の手順が必要です。 <itemizedlist> - <listitem> - <simpara>手順1</simpara> - <para> + <listitem> + <simpara>手順1</simpara> + <para> 指定した<classname>Mail</classname>の新規インスタンス、 - つまり、<link linkend="core.mail.mail.factory"> - <function>factory</function></link>関数を有する + つまり、<link linkend="package.mail.mail.factory"> + <function>factory</function></link>メソッドを有する バックエンドを作成します。 - </para> - </listitem> - <listitem> - <simpara>手順2</simpara> - <para> - <link linkend="core.mail.mail.send"><function>send</function></link> + </para> + </listitem> + <listitem> + <simpara>手順2</simpara> + <para> + <link linkend="package.mail.mail.send"><function>send</function></link> を用いてメールを送信します。 - </para> - </listitem> + </para> + </listitem> </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.mail.mail.intro.backend"> - <title>メーラーバックエンド</title> - <para> - <classname>Mail</classname>は以下の3種類のバックエンドをサポートします。 - <itemizedlist> - <listitem> - <para><parameter>mail</parameter></para> - <para> - PHPの組込関数<function>mail</function>を使用して送信します。 - </para> - </listitem> - <listitem> - <para><parameter>sendmail</parameter></para> - <para> - sendmailプログラムにより送信します。 - </para> - </listitem> - <listitem> - <para><parameter>smtp</parameter></para> - <para> - SMTPサーバに直接接続してメールを送信します。 - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - </refentry> + </para> + </refsect1> + <refsect1 id="package.mail.mail.intro.backend"> + <title>メーラーバックエンド</title> + <para> + <classname>Mail</classname>は以下の3種類のバックエンドをサポートします。 + <itemizedlist> + <listitem> + <para><parameter>mail</parameter></para> + <para> + PHPの組込関数<function>mail</function>を使用して送信します。 + </para> + </listitem> + <listitem> + <para><parameter>sendmail</parameter></para> + <para> + sendmailプログラムにより送信します。 + </para> + </listitem> + <listitem> + <para><parameter>smtp</parameter></para> + <para> + SMTPサーバに直接接続してメールを送信します。 + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml Index: peardoc/ja/package/php/phpunit.xml diff -u peardoc/ja/package/php/phpunit.xml:1.3 peardoc/ja/package/php/phpunit.xml:1.4 --- peardoc/ja/package/php/phpunit.xml:1.3 Wed Apr 30 12:28:57 2003 +++ peardoc/ja/package/php/phpunit.xml Wed Oct 22 11:18:31 2003 @@ -1,18 +1,19 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.3 $ --> - <sect1 id="packages.php.phpunit"> - <title>PHPUnit</title> - - <para> - 関数およびクラスを自動的にテストするテスト用アプリケーションを作成す - るための簡単なフレームワークを提供します。 - </para> - - &package.php.phpunit.intro; - &package.php.phpunit.run; - &package.php.phpunit.testcase.intro; +<?xml encoding="utf-8"?> +<!-- sync: 1.2 --> +<!-- $Revision: 1.4 $ --> +<sect1 id="package.php.phpunit"> + <title>PHPUnit</title> + + <para> + 関数およびクラスを自動的にテストするテスト用アプリケーションを作成す + るための簡単なフレームワークを提供します。 + </para> + + &package.php.phpunit.intro; + &package.php.phpunit.run; + &package.php.phpunit.testcase.intro; - </sect1> +</sect1> <!-- Keep this comment at the end of the file Local variables: Index: peardoc/ja/package/php/phpdoc/usingtool.xml diff -u peardoc/ja/package/php/phpdoc/usingtool.xml:1.2 peardoc/ja/package/php/phpdoc/usingtool.xml:1.3 --- peardoc/ja/package/php/phpdoc/usingtool.xml:1.2 Sat Apr 5 00:48:03 2003 +++ peardoc/ja/package/php/phpdoc/usingtool.xml Wed Oct 22 11:18:32 2003 @@ -1,5 +1,7 @@ -<!-- $Id: usingtool.xml,v 1.2 2003/04/05 05:48:03 hirokawa Exp $ --> -<refentry id="packages.php.phpdoc.usingtool"> +<?xml encoding="utf-8"?> +<!-- sync: 1.3 --> +<!-- $Revision: 1.3 $ --> +<refentry id="package.php.phpdoc.usingtool"> <refnamediv> <refname>PHPDocツールの使用法</refname> <refpurpose> @@ -14,7 +16,7 @@ </arg> <arg choice="opt"> <option>-?</option> - </arg> + </arg> <arg choice="opt"> <option>-f</option> </arg> @@ -22,17 +24,20 @@ <option>-h</option> </arg> <arg choice="opt"> - <option>-i <parameter>directory</parameter></option> - </arg> - <arg choice="opt"> <option>-s <parameter>directory</parameter></option> - </arg> + </arg> <arg choice="opt"> <option>-d <parameter>directory</parameter></option> - </arg> + </arg> + <arg choice="opt"> + <option>-t <parameter>directory</parameter></option> + </arg> + <arg choice="opt"> + <option>-e <parameter>template</parameter></option> + </arg> </cmdsynopsis> </refsynopsisdiv> - <refsect1 id="packages.phpdoc.usingtool.options"> + <refsect1 id="package.php.phpdoc.usingtool.options"> <title>オプション</title> <para> <itemizedlist> @@ -51,75 +56,68 @@ <para> HTML/XML出力ファイルの出力ディレクトリを強制的に削除する </para> - </listitem> + </listitem> <listitem> <para> - <parameter>-i</parameter> + <parameter>-s</parameter> </para> <para> - PHPDocインクルードファイルを置くディレクトリ。通常、PEARディレク - トリ本体にPHPDocディレクトリを置きます。<link - linkend="packages.phpdoc.usingtool.setup">'Setup'セクション - </link>を参照下さい。 + ソースファイルを置くディレクトリ </para> - </listitem> + </listitem> <listitem> <para> - <parameter>-s</parameter> + <parameter>-d</parameter> </para> <para> - ソースファイルを置くディレクトリ + 生成した文書ファイル用の出力ディレクトリ </para> </listitem> <listitem> <para> - <parameter>-d</parameter> + <parameter>-t</parameter> </para> <para> - 生成した文書ファイル用出力ディレクトリ + PHPDocテンプレートディレクトリとなるディレクトリ。通常、使用する + pear/dataディレクトリのPHPDocディレクトリとなります。 + <link + linkend="package.php.phpdoc.usingtool.setup">'設定'のセクション + </link>を参照して下さい。 + </para> + </listitem> + <listitem> + <para> + <parameter>-e</parameter> </para> - </listitem> + <para> + テンプレートディレクトリの使用するテンプレート。現在、2種類のテ + ンプレート、'default' テンプレートと 'timmyg' テンプレートが提供 + されています。 + </para> + </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="packages.php.phpdoc.usingtool.setup"> + <refsect1 id="package.php.phpdoc.usingtool.setup"> <title>プログラムを設定する</title> <para> PHPDocプログラム <command>phpdoc</command>は、 - <parameter>&lt;pearpath&gt;/phpdoc/</parameter>にあります。このファ - イルをオープンし、このファイルの先頭にあるセクションを使用するシス - テムに適合するように編集して下さい。 - <programlisting role="php"> -<![CDATA[ -/*** CONFIGURATION ***/ - -// Directory with PHPDoc include files -$phpdoc_include_dir = '/usr/lib/php/PHPDoc'; -// directory where your source files reside -$source_files = '/usr/lib/php/'; -// save the generated docs here: -$dest_apidoc_dir = '/usr/doc/pear'; -// force the deletion of the target apidocs directory -$dest_apidoc_delete = false; - -/*** END CONF ***/ -]]> - </programlisting> - このプログラムをコールする際にパラメータも設定することが可能です。 - しかし、 <parameter>$phpdoc_include_dir</parameter>は通常変更され - ないため、 最低でもこのパラメータは編集しておくことを推奨します。 - </para> - <refsect2 id="packages.php.phpdoc.usingtool.setup.unix"> + <parameter>&lt;pearpath&gt;/phpdoc/</parameter>にあります。 + このプログラムは、&quot;pear install PHPDoc&quot; でパッケージをイ + ンストールした場合、自動的に設定されます。 + </para> + <refsect2 id="package.php.phpdoc.usingtool.setup.unix"> <title>Unix固有の設定</title> <para> 最初の行でPHPプログラムを指定していることを確認して下さい。 (Webサーバモジュールではなく、CGIとしてインストールしたものです!) + これは、インストーラにより自動的に設定されるはずです。 <programlisting> <command>#!/usr/local/bin/php -Cq</command> </programlisting> </para> </refsect2> - <refsect2 id="packages.php.phpdoc.usingtool.setup.win"> + <refsect2 id="package.php.phpdoc.usingtool.setup.win"> <title>Windows固有の設定</title> <para> PHPDocプログラムをWindows上で実行するために、PHPdocディレクトリに @@ -146,7 +144,7 @@ sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil -sgml-default-dtd-file:"../../../manual.ced" +sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil Index: peardoc/ja/package/php/phpunit/intro.xml diff -u peardoc/ja/package/php/phpunit/intro.xml:1.1 peardoc/ja/package/php/phpunit/intro.xml:1.2 --- peardoc/ja/package/php/phpunit/intro.xml:1.1 Sat Apr 5 00:31:39 2003 +++ peardoc/ja/package/php/phpunit/intro.xml Wed Oct 22 11:18:32 2003 @@ -1,5 +1,6 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> +<?xml encoding="utf-8" ?> +<!-- sync: 1.4 --> +<!-- $Revision: 1.2 $ --> <refentry id="packages.php.phpunit.intro"> <refnamediv> <refname>チュートリアル</refname> @@ -12,9 +13,9 @@ <para> <classname>PHPUnit</classname>は、関数やクラスのテストを自動的に行 うテストアプリケーションを作成する簡単な仕組みを提供します。 - PHPUnitは、<ulink url="http://www.junit.org">JUnit</ulink>からヒン + PHPUnitは、<ulink url="&url.junit;">JUnit</ulink>からヒン トを得ています。Kent BeckとErich Gammaが、 - <ulink url="http://xprogramming.com">eXtreme Programming</ulink> + <ulink url="&url.extreme.prog;">eXtreme Programming</ulink> 用のツールとしてJUnitを作成しました。XPの要素の1つは、 小さなソフトウエアコンポーネントを可能な限り頻繁に、そして、早期に 試験し、アプリケーション全体を設定、試験する際にAPIのバグやエラーを @@ -275,7 +276,7 @@ </para> </refsect1> <refsect1 id="packages.php.phpunit.intro.conclusion"> - <title>Conclusion</title> + <title>まとめ</title> <para> Hm, such a big expenditure for testing three simple functions? Don't forget, this is a small example. Index: peardoc/ja/package/php/phpunit/run.xml diff -u peardoc/ja/package/php/phpunit/run.xml:1.1 peardoc/ja/package/php/phpunit/run.xml:1.2 --- peardoc/ja/package/php/phpunit/run.xml:1.1 Sat Apr 5 00:31:39 2003 +++ peardoc/ja/package/php/phpunit/run.xml Wed Oct 22 11:18:32 2003 @@ -1,54 +1,56 @@ -<!-- $Revision: 1.1 $ --> +<?xml encoding="utf-8"?> +<!-- sync: 1.4 --> +<!-- $Revision: 1.2 $ --> <refentry id="package.php.phpunit.run"> - <refnamediv> - <refname>PHPUnit::run()</refname> - <refpurpose>runs a TestSuite and returns a TestResult object.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'PHPUnit.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>object <function>PHPUnit::run</function></funcdef> - <paramdef> - object <parameter>$suite</parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.php.phpunit.run.desc"> - &title.desc; - <para> - Executes the given test suite - </para> - </refsect1> - <refsect1 id="package.php.phpunit.run.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>object $suite</parameter> - an object of - <link linkend="packages.phpunit.phpunit-testsuite">PHPUnit_TestSuite</link> - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.categorie.mypackage.myfunction.return"> - &title.returns; - <para> - <parameter>&amp;PHPUnit_Result</parameter> - A reference to a - <link linkend="packages.phpunit.phpunit-result">PHPUnit_Result</link>. - </para> - </refsect1> - <refsect1 id="packages.php.phpunit.run.example"> - &title.example; - <example> - <title>Using <function>PHPUnit::run</function></title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>PHPUnit::run()</refname> + <refpurpose>TestSuiteを実行し、TestResultオブジェクトを返す</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'PHPUnit.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>object <function>PHPUnit::run</function></funcdef> + <paramdef> + object <parameter>$suite</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.php.phpunit.run.desc"> + &title.desc; + <para> + 指定したテストスーツを実行します。 + </para> + </refsect1> + <refsect1 id="package.php.phpunit.run.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>object $suite</parameter> - PHPUnit_TestSuiteのオブジェクト + <!-- <link linkend="package.phpunit.phpunit-testsuite"></link> --> + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.categorie.mypackage.myfunction.return"> + &title.returns; + <para> + <parameter>&amp;PHPUnit_Result</parameter> - PHPUnit_Resultへのリファレンス。 + <!-- <link linkend="package.phpunit.phpunit-result">PHPUnit_Result</link>. --> + </para> + </refsect1> + <refsect1 id="packages.php.phpunit.run.example"> + &title.example; + <example> + <title>Using <function>PHPUnit::run</function></title> + <programlisting role="php"> + <![CDATA[ <?php require_once "PHPUnit.php"; $suite = New PHPUnit_TestSuite('Mathtest'); @@ -56,10 +58,10 @@ echo $result->toHtml(); ?> ]]> - </programlisting> - </example> - </refsect1> - </refentry> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml Index: peardoc/ja/package/php/phpunit/testcase.xml diff -u peardoc/ja/package/php/phpunit/testcase.xml:1.2 peardoc/ja/package/php/phpunit/testcase.xml:1.3 --- peardoc/ja/package/php/phpunit/testcase.xml:1.2 Sat Apr 5 00:40:31 2003 +++ peardoc/ja/package/php/phpunit/testcase.xml Wed Oct 22 11:18:32 2003 @@ -1,3 +1,6 @@ +<?xml encoding="utf-8" ?> +<!-- sync: 1.2 --> +<!-- $Revision: 1.3 $ --> <refentry id="package.php.phpunit.testcase"> <refnamediv> <refname><classname>TestCase</classname></refname>
« previous php.pear.doc (#1719) next »