More Related Content
Similar to PHPのテスト名を日本語にした話 (20)
PHPのテスト名を日本語にした話
- 5. 日本語導入のために決めたルール
● context (条件)と it (結果)をメソッド名に含める (基本的にこれだけ)
ex .
function ユーザーが男性の時にtrueを返す()
{
$user = new User();
$user->sex = User::MAN;
$this->assertTrue($user->isMan());
}