test.php
require_once('simpletest/autorun.php’);
class Sample extends UnitTestCase{
public function test_my_var(){
$this->assertTrue( 1 == "1" );
}
}
$t = new Sample();
これだけ覚えてればテストが書けるSimpleTestは偉い。
テストの実行は、WEBブラウザからでも、コンソールからでも何方でも可。