title: Missing argument 2 for CActiveRecord::setAttribute() in yii
body: <pre><code> &lt;?php
  class ProjectTest extends CDbTestCase
  {
      public function testCRUD()
      {
          $newProject = new Project;
          $newProjectName = 'Test Project 1';
          $newProject-&gt;setAttribute(
                                  array('name'=&gt;$newProjectName,
                                        'description'=&gt;'Test Project Number One',
                                        'create_time'=&gt;'2010-01-01 00:00:00',
                                        'create_user_id'=&gt; 1,
                                        'update_time'=&gt;'2010-01-01 00:00:00',
                                        'update_user_id'=&gt; 1,)
                                  );
          $this-&gt;assertTrue($newProject-&gt;save(false));
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I have a ar class named Project...in table these are the list of items i have ...I m trying to test whether this code inserts the data in to that table or not, using phpunit test in command line but it gives error (Missing argument 2 for CActiveRecord::setAttribute() ) any help</p>