コード例 #1
0
 /**
  * @expectedException \yii\base\InvalidConfigException
  */
 public function testInvalidExceptionWithEmptyApiKey()
 {
     Yii::createObject(['class' => PingppComponent::className(), 'appId' => 'app_1Gqj58ynP0mHeX1q']);
 }
コード例 #2
0
 /**
  * @expectedException \yii\base\InvalidConfigException
  */
 public function testInvalidExceptionWithInvalidPrivateKeyPath()
 {
     Yii::createObject(['class' => PingppComponent::className(), 'apiKey' => 'sk_test_ibbTe5jLGCi5rzfH4OqPW9KC', 'appId' => 'app_1Gqj58ynP0mHeX1q', 'privateKeyPath' => 'invalid_private_key.pem']);
 }