cvs: peardoc /ja/package/php/phpunit testcase.xml

From: Date: Sat, 05 Apr 2003 05:40:31 +0000
Subject: cvs: peardoc /ja/package/php/phpunit testcase.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-606@lists.php.net to get a copy of this message
hirokawa Sat Apr 5 00:40:31 2003 EDT Modified files: /peardoc/ja/package/php/phpunit testcase.xml Log: added phpunit/*.xml Index: peardoc/ja/package/php/phpunit/testcase.xml diff -u peardoc/ja/package/php/phpunit/testcase.xml:1.1 peardoc/ja/package/php/phpunit/testcase.xml:1.2 --- peardoc/ja/package/php/phpunit/testcase.xml:1.1 Sat Apr 5 00:31:39 2003 +++ peardoc/ja/package/php/phpunit/testcase.xml Sat Apr 5 00:40:31 2003 @@ -1,24 +1,24 @@ <refentry id="package.php.phpunit.testcase"> - <refnamediv> - <refname><classname>TestCase</classname></refname> - <refpurpose>A TestCase defines the fixture to run multiple tests.</refpurpose> - </refnamediv> - <refsect1 id="package.php.phpunit.testcase.desc"> - &title.desc; - <para> - &class.testcase; - To define a TestCase - - 1) Implement a subclass of PHPUnit_TestCase. - 2) Define instance variables that store the state of the fixture. - 3) Initialize the fixture state by overriding setUp(). - 4) Clean-up after a test by overriding tearDown(). - - Each test runs in its own fixture so there can be no side effects - among test runs. - </para> - </refsect1> - </refentry> + <refnamediv> + <refname><classname>TestCase</classname></refname> + <refpurpose>TestCase: 複数のテストを実行するための設備(fixture)を定義する</refpurpose> + </refnamediv> + <refsect1 id="package.php.phpunit.testcase.desc"> + &title.desc; + <para> + &class.testcase; + TestCaseを定義する手順: + + 1) PHPUnit_TestCaseのサブクラスを実装します。 + 2) 設備の状態を保存するインスタンス変数を定義します。 + 3) setUp()をオーバーライドすることにより設備の状態を初期化します。 + 4) tearDown()を上書きすることによりテスト後の清掃を行います。 + + 各テストは、各自の設備において実行されるため、テストの実行による副 + 作用はありません。 + </para> + </refsect1> +</refentry> &package.php.phpunit.testcase.example; &package.php.phpunit.testcase.counttestcases;

« previous php.pear.doc (#606) next »