私は次のuploadformモデルを持っています
class TestUploadForm extends CFormModel
{
public $test;
public function rules()
{
    return array(
        array(test, 'file', 'types' => 'zip, rar'),
    );
}
私の質問は、これをユニットテストするにはどうすればよいですか?私は次のようなことを試しました:
public $testFile = 'fixtures/files/yii-1.1.0-validator-cheatsheet.pdf';
public function testValidators()
{
    $testUpload = new TestUploadForm;
    $testUpload->test = $this->testFile ;
    assertTrue($testUpload ->validate());
    $errors= $testUpload ->errors;
    assertEmpty($errors);
}
ただし、フィールドが入力されていないことがわかります。拡張ルールを適切に単体テストするにはどうすればよいですか?