<?php
/// サンプルテストケース
class SampleTest extends UnitTestCase
{
	/**
	 * テストの初期化（DB接続などの前処理が必要であれば）
	 * テストメソッド毎にsetUp、tearDownが実行される
	 */
	function setUp()
	{
		echo "setUp<br/>\n";
	}

	/**
	 * テストの終了処理（DB切断などの後処理が必要であれば）
	 * テストメソッド毎にsetUp、tearDownが実行される。
	 */
	function tearDown() {
		parent::tearDown();
		echo "tearDown<br/>\n";
	}

	/**
	 * 以下実際のテスト
	 * 「test」で始まるfunction名がテスト対象となる
	 */

	function test1()
	{
		$result = true;
		$answer = true;
		$this->assertEqual($result, $answer, "一致");
	}

	function test2()
	{
		$a=1;
		$this->assertTrue(is_array($a));
	}
}

?>