Skip to content

Instantly share code, notes, and snippets.

@takuya
Created February 9, 2012 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya/1780800 to your computer and use it in GitHub Desktop.
Save takuya/1780800 to your computer and use it in GitHub Desktop.
PHPのSimpleTestを使う最小限の例 ref: http://qiita.com/items/2286
require_once('simpletest/autorun.php’);
class Sample extends UnitTestCase{
public function test_my_var(){
$this->assertTrue( 1 == "1" );
}
}
$t = new Sample();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment