public function testMakeQAArray()
 {
     $expectation = array('0' => array('text' => 'question1', 'category' => '1', 'score' => 1.0, 'weight' => 1, 'state' => 2), '1' => array('text' => 'question2', 'category' => '2', 'score' => 1.0, 'weight' => 2, 'state' => 1, 'answers' => array('0' => array('text' => 'answer20', 'flag' => '0', 'state' => '0'), '1' => array('text' => 'answer21', 'flag' => '1', 'state' => '1'), '2' => array('text' => 'answer22', 'flag' => '1', 'state' => '0'))));
     $testanswers = array('10' => array('id' => 110), '21' => array('id' => 121));
     $result = TestController::makeQAArray($this->questions, $this->answers, $testanswers);
     $this->assertEquals($expectation, $result);
 }