Пример #1
0
 public function testNormalizeInstanceParameters()
 {
     $userId = 1;
     $username = '******';
     $timestamp = 999;
     $task = new HAWelcomeTask();
     $params = array('iUserId' => $userId, 'sUserName' => $username, 'iTimestamp' => $timestamp);
     $task->normalizeInstanceParameters($params);
     $this->assertEquals($userId, $task->getRecipientId());
     $this->assertEquals($username, $task->getRecipientUserName());
     $this->assertEquals($timestamp, $task->getTimestamp());
 }