/**
  * @depends testCreate
  */
 public function testCreateWithPrivateKey()
 {
     $config = Yii::$app->getComponents()['pingpp'];
     $config['privateKey'] = file_get_contents(dirname(__FILE__) . '/rsa_private_key.pem');
     $component = Yii::createObject($config);
     $chargeForm = new ChargeForm();
     $chargeForm->component = $component;
     $chargeForm->load(require 'data/charge.php', '');
     $this->assertTrue($chargeForm->validate() && $chargeForm->create());
     $this->assertTrue(is_array($chargeForm->getCharge(true)));
 }