常用方法
常用方法
常用方法
常用方法
public function testAddWrongOpenSSLSignature(CodeGuy $I) { $I->wantToTest('add OpenSSL signature with wrong private key'); $I->createExamplePhar(\Yii::getAlias('@tests/_runtime/yii2-phar')); try { $I->addWrongOpenSSLSignature(); $I->fail("signature with wrong params didn't fire exception"); } catch (InvalidConfigException $error) { // Exception must fire. } }